... | ... | @@ -438,7 +438,8 @@ GitLab remotes, where it "un-protects" and "re-protects" the branch. |
|
|
You should run the script with an account that has "Maintainer" or
|
|
|
"Owner" access to GitLab, so that it can do the above GitLab API
|
|
|
changes. You will then need to provide an [access token](https://gitlab.torproject.org/-/profile/personal_access_tokens) through
|
|
|
the `GITLAB_PRIVATE_TOKEN` environment variable.
|
|
|
the `GITLAB_PRIVATE_TOKEN` environment variable, which should have the
|
|
|
scope `api`.
|
|
|
|
|
|
So, for example, this will rename the `master` branch to `main` on the
|
|
|
local and remote repos:
|
... | ... | |