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
footer: false # omit AI-generated footer from review body (default: true)
738
739
```
739
740
741
+
Use `allowed-events` to restrict which review event types the agent can submit. This provides infrastructure-level enforcement — for example, `allowed-events: [COMMENT, REQUEST_CHANGES]` prevents the agent from submitting APPROVE reviews regardless of what the agent attempts to output. If omitted, all event types (APPROVE, COMMENT, REQUEST_CHANGES) are allowed.
Resolves review threads on pull requests. Allows AI agents to mark review conversations as resolved after addressing the feedback. Uses the GitHub GraphQL API with the `resolveReviewThread` mutation.
Copy file name to clipboardExpand all lines: pkg/parser/schemas/main_workflow_schema.json
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1887,7 +1887,7 @@
1887
1887
},
1888
1888
"status-comment": {
1889
1889
"type": "boolean",
1890
-
"description": "Whether to post status comments (started/completed) on the triggering item. When true, adds a comment with workflow run link and updates it on completion. When false or not specified, no status comments are posted. Automatically enabled for slash_command and label_command triggers — manual configuration is only needed for other trigger types.",
1890
+
"description": "Whether to post status comments (started/completed) on the triggering item. When true, adds a comment with workflow run link and updates it on completion. When false or not specified, no status comments are posted. Automatically enabled for slash_command and label_command triggers \u2014 manual configuration is only needed for other trigger types.",
1891
1891
"examples": [true, false]
1892
1892
},
1893
1893
"github-token": {
@@ -5907,6 +5907,15 @@
5907
5907
},
5908
5908
"description": "List of additional repositories in format 'owner/repo' that PR reviews can be submitted in. When specified, the agent can use a 'repo' field in the output to specify which repository to submit the review in. The target repository (current or target-repo) is always implicitly allowed."
5909
5909
},
5910
+
"allowed-events": {
5911
+
"type": "array",
5912
+
"items": {
5913
+
"type": "string",
5914
+
"enum": ["APPROVE", "COMMENT", "REQUEST_CHANGES"]
5915
+
},
5916
+
"description": "Optional list of allowed review event types. If omitted, all event types (APPROVE, COMMENT, REQUEST_CHANGES) are allowed. Use this to restrict the agent to specific event types, e.g. [COMMENT, REQUEST_CHANGES] to prevent approvals.",
5917
+
"minItems": 1
5918
+
},
5910
5919
"github-token": {
5911
5920
"$ref": "#/$defs/github_token",
5912
5921
"description": "GitHub token to use for this specific output type. Overrides global github-token if specified."
@@ -7553,12 +7562,16 @@
7553
7562
"properties": {
7554
7563
"include": {
7555
7564
"type": "array",
7556
-
"items": { "type": "string" },
7565
+
"items": {
7566
+
"type": "string"
7567
+
},
7557
7568
"description": "Glob patterns for files to include"
7558
7569
},
7559
7570
"exclude": {
7560
7571
"type": "array",
7561
-
"items": { "type": "string" },
7572
+
"items": {
7573
+
"type": "string"
7574
+
},
7562
7575
"description": "Glob patterns for files to exclude"
Copy file name to clipboardExpand all lines: pkg/workflow/submit_pr_review.go
+31-2Lines changed: 31 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
package workflow
2
2
3
3
import (
4
+
"strings"
5
+
4
6
"github.com/github/gh-aw/pkg/logger"
5
7
)
6
8
@@ -13,7 +15,8 @@ var submitPRReviewLog = logger.New("workflow:submit_pr_review")
13
15
typeSubmitPullRequestReviewConfigstruct {
14
16
BaseSafeOutputConfig`yaml:",inline"`
15
17
SafeOutputTargetConfig`yaml:",inline"`
16
-
Footer*string`yaml:"footer,omitempty"`// Controls when to show footer in PR review body: "always" (default), "none", or "if-body" (only when review has body text)
18
+
Footer*string`yaml:"footer,omitempty"`// Controls when to show footer in PR review body: "always" (default), "none", or "if-body" (only when review has body text)
19
+
AllowedEvents []string`yaml:"allowed-events,omitempty"`// Optional list of allowed review event types: APPROVE, COMMENT, REQUEST_CHANGES. If omitted, all event types are allowed.
0 commit comments