Skip to content

build(release): fetch PR body in get_pr_info and grant PR read permissions - #4177

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_release_prepare_workflow
Sep 22, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_release_prepare_workflow

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

The release preparation completion workflow parses the merged PR body to
locate the associated release tracking issue. Previously, the workflow
failed to resolve the tracking issue because get_pr_info omitted the
PR body field and the GitHub Actions workflow lacked permission to
read pull requests.

Request the body field when querying PR metadata and grant
pull-requests: read permission to the workflow so it can extract the
issue number from the merged preparation PR.

Work towards #4175

…sions

The release preparation completion workflow parses the merged PR body to
locate the associated release tracking issue. Previously, the workflow
failed to resolve the tracking issue because `get_pr_info` omitted the
PR `body` field and the GitHub Actions workflow lacked permission to
read pull requests.

Request the `body` field when querying PR metadata and grant
`pull-requests: read` permission to the workflow so it can extract the
issue number from the merged preparation PR.

Work towards bazel-contrib#4175
@rickeylev
rickeylev requested a review from aignas as a code owner September 22, 2026 06:50
@rickeylev
rickeylev merged commit 40ea02e into bazel-contrib:main Sep 22, 2026
3 of 5 checks passed
@rickeylev
rickeylev deleted the fix_release_prepare_workflow branch September 22, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant