Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/go-api-consistency-review-forks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Dispatch fork API consistency reviews
run-name: "Dispatch API consistency - PR #${{ github.event.pull_request.number }}"

# Fork pull_request runs cannot access the credentials needed by the agent's
# safe-output jobs. Dispatch the review from the trusted base branch instead,
Expand All @@ -9,6 +10,8 @@ on:
paths-ignore:
- '.github/**'
- 'docs/**'
- '**/*_test.go'
- 'cmd/verifyexamples/**'
- 'README*'
- 'LICENSE*'
- '*.md'
Expand Down Expand Up @@ -43,5 +46,11 @@ jobs:
ref: process.env.TARGET_REF,
inputs: {
pr_number: process.env.PR_NUMBER,
// Preserve PR context for safe-output handlers on dispatched runs.
aw_context: JSON.stringify({
repo: `${context.repo.owner}/${context.repo.repo}`,
item_type: 'pull_request',
item_number: Number(process.env.PR_NUMBER),
}),
},
});
Loading
Loading