Will you submit the changes as merge requests for review? I'll
try to
take a look later this week.
For getting push rights you'll need to wait for the team owners'
approval.
I don't think I have permission to add new members to the
team
but I do have commit rights to handle merge requests, which is
why
I asked.
Hello everyone,
I have packaged new releases of various packages like transient, magit and with-editor, and I'd like to be able to push them.
However, some branches in those repos are protected, so I cannot push to them,
since I am developer in the Emacsen Salsa group.
May I become a maintainer in the Emacsen Salsa group ?
Hi Sean,
Le mardi 12 mars 2024 à 10:31, Sean Whitton <spwhitton@spwhitton.name> a écrit
:
I'd prefer just to unprotect the branches.
Agreed.
Does anyone have a script which mass-unprotects branches?
I just looked it up, I came up with the following scripts. You need to have created an API token with the relevant permissions. And the scripts use the ~jq(1)~ command, installable from the homonymous debian package.
The attached file ~debian_emacsen_ids_and_branches~ contains the project ids and the names of the protected branches of the debian-emacsen group. I generated this list using the scripts ~salsa_fetch_debian_emacsen.sh~ and ~salsa_list_protected_branches.sh~, which I have included for reference.
The script ~salsa_unprotect_branches.sh~ does the actual unprotecting. I could
not test it, for I am not the owner (I get 403 errors, which makes sense).
Here are the relevant gitlab api documentations I used to get to this : https://docs.gitlab.com/ee/api/groups.html and https://docs.gitlab.com/ee/api/protected_branches.html.
Do tell me how it worked, I am curious.
Xiyue reports it worked :)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 160:47:30 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,494 |