You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* yasu/projectowners:
docs: describe draft PR behavior
github: don't request reviews if no diff from current reviewer list
github: request project owner review if non-draft only
cfg: change project owner syntax to record list
docs: + project_owners
github: request review when pr labeled
cfg: + project_owners
github: derive project owners from incoming label list
github: + request_reviewers api
|`label_rules`| label rules config object | required field |
34
37
|`prefix_rules`| prefix rules config object | required field |
35
38
|`status_rules`| status rules config object | all status notifications are ignored |
39
+
|`project_owners`| project owners config object | no project owners are defined |
36
40
37
41
## Label Options
38
42
@@ -238,3 +242,37 @@ You can optionally provide a **status condition** to specify additional requirem
238
242
}
239
243
}
240
244
```
245
+
246
+
## Project Owners
247
+
248
+
In GitHub, ["code owners"](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) are the users/teams whose review is automatically requested when a PR modifying code in a given directory is opened. **Project owners** behave similarly, with two differences.
249
+
250
+
- Owners are defined _per PR label_, instead of _per directory_ (or directory pattern)
251
+
- Definitions should be placed in the per-repo Monorobot configuration file, instead of a `CODEOWNERS` file
252
+
253
+
Draft PR behavior is similar to code owners. From GitHub documentation:
254
+
255
+
> Code owners are not automatically requested to review draft pull requests. [...] When you mark a draft pull request as ready for review, code owners are automatically notified.
256
+
257
+
The syntax for listing users is `username`. For teams, it is `org/team-name`.
258
+
259
+
Note that the owner of the personal access token cannot be a project owner, as GitHub disallows a user from self-requesting a review. Consider provisioning a separate bot user, or authenticating using a [GitHub App](https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#accessing-api-endpoints-as-a-github-app) instead.
?main_branch_name : string nullable; (* the name of the main branch; used to filter out notifications about merges of main branch into other branches *)
0 commit comments