Set up the winget-bot submitter with a wizard #8
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#1 Submit new versions to the JCOllie winget source
jeff/clipwatch
Reference
jeff/winget-pkgs#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #4
Set up the submitter,
winget-bot, with a/wizardthat walks through the steps only a person can do on the forge. Its account is used byjeff/winget-submitto push submission branches here and open pull requests.The wizard covers:
winget-boton git.jcollie.dev. It owns no repositories and belongs to no organizations, because Forgejo token scopes cover all of a user's access, not a single repository.jeff/winget-pkgsas a collaborator with write access. Branch protection onmainalready keeps it from merging or pushing there: it can push branches and open pull requests, which still need thetest / test (pull_request)check and a merge by hand.write:repositoryandwrite:issuescopes.WINGET_BOT_TOKENonjeff/clipwatch(the first program to submit), and saying how to add it to another program later.jeff/winget-pkgsand cannot push tomain.Done when
winget-botexists with exactly that access, andjeff/clipwatchhas theWINGET_BOT_TOKENsecret.Set up with
tools/setup-submitter jeff/clipwatch(#11, fixed in #12). All of its checks passed. I then confirmed through the admin API:winget-bot[email protected] exists. It is restricted and not an administrator.jeff/winget-pkgs.main, pushing is disabled,test / test (pull_request)is required, and onlyjeffcan merge.jeff/clipwatchhas theWINGET_BOT_TOKENsecret. The token iswinget-submit-jeff-clipwatch, limited to this repository withwrite:repositoryandwrite:issue.Two changes from the plan:
read:userscope: Forgejo won't give a token limited to repositories anything beyond repository and issue scopes, sojeff/winget-submitcommits as a built-inwinget-botinstead (jeff/winget-submit#4).