mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:11:54 +00:00
* e2e tst: add actions to create github org (#56775) * add basic actions to create org * e2e tst: add actions to create github users (#56776) * add basic actions to create and get users * fix adminUser * add unique id to user email * e2e tst: add actions to create github teams (#56777) * add basic actions to manage teams * e2e tst: add actions to create repos (#56778) --------- Co-authored-by: Petri-Johan Last <petri.last@sourcegraph.com> Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
10 lines
195 B
Go
10 lines
195 B
Go
package codehost_testing
|
|
|
|
func reverse[T any](src []T) []T {
|
|
reversed := make([]T, 0, len(src))
|
|
for i := len(src) - 1; i >= 0; i-- {
|
|
reversed = append(reversed, src[i])
|
|
}
|
|
return reversed
|
|
}
|