sourcegraph/dev/scaletesting/bulkreposettings
2024-05-16 15:51:16 +01:00
..
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
main.go Replace all traditional for-loops (#60988) 2024-03-11 16:05:47 +02:00
README.md Re-enable prettier format checking. Disable with flag (#43548) 2022-10-31 12:14:42 +02:00

Bulkreposettings

A CLI tool to update an organization repositories settings in batch.

Supported operations:

  • set visibility to private.

Supported codehosts:

  • GitHub and GitHub enterprise.

Usage

go run ./dev/scaletesting/bulkreposettings [flags...]

Flags:

  • Authenticating:
    • github.token: GHE Token to create the repositories (required).
    • github.url: Base URL to the GHE instance (ex: https://ghe.sgdev.org) (required).
    • github.org: Existing organization to create the repositories in (required).
  • Managing the workload
    • state: sqlite database name to create or resume from (default state.db)
    • retry: Number of times to retry pushind (can be tedious at high concurrency)