Skip to content

fix(ci): allow PR risk labels#1135

Merged
betegon merged 1 commit into
mainfrom
fix/pr-risk-label-permissions
Jun 23, 2026
Merged

fix(ci): allow PR risk labels#1135
betegon merged 1 commit into
mainfrom
fix/pr-risk-label-permissions

Conversation

@betegon

@betegon betegon commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

Lets the PR risk workflow apply the risk: low, risk: medium, or risk: high label returned by getsentry/pr-risk-action@v0.

The shared action now creates/removes the risk labels, but the caller workflow needs issues: write because PR labels use GitHub's Issues API.

Test Plan

  • PYTHONPATH=src python3 -m unittest discover -s tests in getsentry/pr-risk-action
  • Verified the previous getsentry/cli#1134 run only had read permissions, which explains why no label could be applied.

@betegon betegon marked this pull request as ready for review June 23, 2026 20:16
@betegon betegon merged commit acc38ce into main Jun 23, 2026
24 checks passed
@betegon betegon deleted the fix/pr-risk-label-permissions branch June 23, 2026 20:16
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