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
When a PR has any of these labels, the comment will look like this:
256
256
```
257
-
❗High Prio❗
257
+
❗High Prio❗
258
258
259
259
Codeowners approval required for this PR:
260
260
- @user1
261
261
- @user2
262
262
```
263
263
264
+
## Quiet Mode
265
+
266
+
You can run Codeowners Plus in a "quiet" mode using the `quiet` input in the GitHub Action.
267
+
268
+
### When Quiet Mode is Enabled
269
+
270
+
***No Comments:** The action will **not** post the review status comment (listing required/unapproved reviewers) or the optional reviewer "cc" comment to the Pull Request.
271
+
***No Review Requests:** The action will **not** automatically request reviews from required owners who have not yet approved via the GitHub API.
272
+
273
+
### Behavior:
274
+
275
+
Even in quiet mode, the tool still performs all its internal calculations: determining required/optional owners based on file changes, checking existing approvals, and determining if the ownership rules are satisfied. The primary outcome is still the success or failure status of the associated status check (unless you've configured `enforcement.fail_check = false`).
276
+
277
+
### Use Cases:
278
+
279
+
***Draft Pull Requests:** This is a common use case. You might want the Codeowners Plus logic to run and report a status (e.g., pending or failed) on draft PRs, but without notifying reviewers prematurely by adding comments or requesting reviews until the PR is marked "Ready for review".
280
+
***Custom Notification Workflows:** You might prefer to handle notifications or review requests through a different mechanism and only use Codeowners Plus for the status check enforcement.
281
+
282
+
### Activation:
283
+
284
+
***GitHub Action:** Set the `quiet` input to `'true'`.
Quiet: flag.Bool("quiet", ignoreError(strconv.ParseBool(getEnv("INPUT_QUIET", "0"))), "Prevents addition of comments to PR and requesting reviews from unapproved owners"),
0 commit comments