@@ -21,7 +21,10 @@ failed are re-approved again on their own.
21
21
22
22
There are multiple steps needed to add a repository to our Bors instance:
23
23
24
- 1 . Each CI provider needs to have a single GitHub Check Run to gate on. This is
24
+ 1 . The [ @bors ] GitHub account needs to be granted write access to the
25
+ repository.
26
+
27
+ 2 . Each CI provider needs to have a single GitHub Check Run to gate on. This is
25
28
not provided by default on GitHub Actions, but it can be simulated with
26
29
these two jobs, which will generate a ` bors build finished ` check:
27
30
@@ -56,26 +59,25 @@ There are multiple steps needed to add a repository to our Bors instance:
56
59
on:
57
60
push:
58
61
branches: [
59
- master, # This is any branch you normally run CI on
60
62
auto, # Added for bors
61
63
try # Added for bors
62
64
]
63
65
` ` `
64
66
65
- 2 . Add the repository name to the bors permissions array in the [team
67
+ 3 . Add the repository name to the bors permissions array in the [team
66
68
repository][team-permissions.rs], and grant the `bors.REPOSITORY.review`
67
69
permission to the right teams or people. You can see an example of adding
68
70
bors permissions to a team [here][bors-permission].
69
71
70
- 3 . Add the repository to the `repositories` map in [the Terraform configuration
72
+ 4 . Add the repository to the `repositories` map in [the Terraform configuration
71
73
file][tf-repos]. This will create a webhook and inject its secret key in the
72
74
bors execution environment.
73
75
74
- 4 . Add the repository to the [Bors configuration][bors-config], taking
76
+ 5 . Add the repository to the [Bors configuration][bors-config], taking
75
77
inspiration from other repositories. Note that the environment variables used
76
78
in that config will be set automatically as long as you completed step 3 above.
77
79
78
- 5 . Give it a test by commenting `@bors ping` in any PR. If you get a response back,
80
+ 6 . Give it a test by commenting `@bors ping` in any PR. If you get a response back,
79
81
you can then try to approve the PR with `@bors r+`.
80
82
81
83
[@bors] : https://github.com/bors
0 commit comments