Skip to content

Fix release draft PR label scope#575

Merged
koxudaxi merged 1 commit intomainfrom
fix-release-draft-pr-label-scope
Apr 30, 2026
Merged

Fix release draft PR label scope#575
koxudaxi merged 1 commit intomainfrom
fix-release-draft-pr-label-scope

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

@koxudaxi koxudaxi commented Apr 30, 2026

Summary

  • Grant the release draft update job pull-requests: write so PR labels can be added by the workflow token
  • Keep the no-checkout update job and REST API label/comment calls from the previous fix

Checks

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release-draft.yml"); puts "OK release-draft"'
  • git diff --check

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow permissions to support enhanced automation capabilities for release management processes.

@github-actions
Copy link
Copy Markdown
Contributor

📚 Docs Preview: https://pr-575.fastapi-code-generator.pages.dev

@koxudaxi koxudaxi merged commit b1c8c22 into main Apr 30, 2026
33 of 34 checks passed
@koxudaxi koxudaxi deleted the fix-release-draft-pr-label-scope branch April 30, 2026 17:52
@github-actions
Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: PR #575 only changes .github/workflows/release-draft.yml, modifying the pull-requests permission from read to write for the release draft update job. This is a CI/CD workflow-only change that affects how the GitHub Actions workflow token interacts with PR labels. It does not touch any source code, generated output, templates, CLI arguments, Python API, default behavior, dependency requirements, or error handling. No user-facing behavior is affected.


This analysis was performed by Claude Code Action

@github-actions github-actions Bot added the breaking-change-analyzed PR has been checked for release draft updates label Apr 30, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8c6b162) to head (d9a38b7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #575   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines         1351      1351           
  Branches       139       139           
=========================================
  Hits          1351      1351           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9e419d1e-35a8-456b-886a-c4c1df4b3491

📥 Commits

Reviewing files that changed from the base of the PR and between 8c6b162 and d9a38b7.

📒 Files selected for processing (1)
  • .github/workflows/release-draft.yml

Walkthrough

The pull-requests permission for the release draft workflow job was escalated from read to write, granting the workflow greater authorization to modify pull request-related resources during execution.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Permissions
.github/workflows/release-draft.yml
Expanded pull-requests permission scope from read to write to enable write operations on pull requests during the release draft job execution.

Possibly related PRs

  • Fix release draft label permissions #573: Also modifies .github/workflows/release-draft.yml to adjust the release draft job's authorization level, potentially by switching to issue-scoped commands to avoid requiring elevated permissions.
  • Restore release draft analysis #571: Directly modifies the same workflow file and adjusts the pull-requests permission configuration in the GitHub Actions job.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A single line, so small, so slight,
Permission granted—from read to write!
The workflow hops with newfound might,
Pull requests yield to our fuzzy knight! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-release-draft-pr-label-scope

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 5/8 reviews remaining, refill in 21 minutes and 35 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change-analyzed PR has been checked for release draft updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant