Compare commits
2 Commits
Qubasa-mai
...
55f252af92
| Author | SHA1 | Date | |
|---|---|---|---|
| 55f252af92 | |||
| 81553a3bc6 |
10
README.md
10
README.md
@@ -108,13 +108,9 @@ to directly push to your open pull request
|
||||
## Using this template
|
||||
|
||||
Setup two new gitea accounts.
|
||||
One named `ui-asset-bot`, generate an access token for it with all access permissions and set under `settings/actions/secrets` a secret called `BOT_ACCESS_TOKEN` with the token.
|
||||
One named `ui-asset-bot`, generate an access token for it with all access permissions and set under `settings/actions/secrets` a secret called BOT_ACCESS_TOKEN with the token.
|
||||
Also edit the file `.gitea/workflows/ui_assets.yaml` and change the `BOT_EMAIL` variable to the email you set for that account.
|
||||
The second account is called `merge-bot` edit the file `pkgs/merge-after-ci/default.nix`
|
||||
if the name should be different.
|
||||
Under Branches set the main branch to protected and add `merge-bot` to whitelisted users for pushing.
|
||||
Also set an unprotected file pattern to `**/ui-assets.nix`.
|
||||
Also set the option `Enable Status Check` to `build / test (pull_request)`
|
||||
Add `merge-bot` and `ui-asset-bot` as collaborators.
|
||||
Also set the option `Delete pull request branch after merge by default`
|
||||
Also the the default merge style to `Rebase then create merge commit`
|
||||
Then set the main branch to protected and add `merge-bot` to whitelisted users for pushing. Also set an unprotected file pattern to `**/ui-assets.nix`.
|
||||
Add both `ui-asset-bot` and `merge-bot` as collaborators.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ fetchzip }:
|
||||
fetchzip {
|
||||
url = "https://gitea.gchq.icu/api/packages/ui-asset-bot/generic/ui/1inlxk1i9q87bw00zwqyvpm3m0hdgdffhxlymzgi5wvqn9syd0cm/assets.tar.gz";
|
||||
sha256 = "1inlxk1i9q87bw00zwqyvpm3m0hdgdffhxlymzgi5wvqn9syd0cm";
|
||||
url = "https://gitea.gchq.icu/api/packages/ui-asset-bot/generic/ui/0bv0b0pnz53y2k5xx2flqf12l5acwcvckgpjx1zs0x172acy1lcw/assets.tar.gz";
|
||||
sha256 = "0bv0b0pnz53y2k5xx2flqf12l5acwcvckgpjx1zs0x172acy1lcw";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user