Skip to content

Fix release draft label permissions#573

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

Fix release draft label permissions#573
koxudaxi merged 1 commit intomainfrom
fix-release-draft-label-permissions

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

@koxudaxi koxudaxi commented Apr 30, 2026

Summary

  • Use gh issue edit for PR labels so the release draft job works with issues: write
  • Use gh issue comment for the analysis comment without requiring pull request write scope

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 release workflow automation for improved integration with issue tracking and release management processes.

@github-actions
Copy link
Copy Markdown
Contributor

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

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9d33e565-62bf-4cd1-a863-3329726b4f7d

📥 Commits

Reviewing files that changed from the base of the PR and between c9e87de and e1f92a7.

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

Walkthrough

The .github/workflows/release-draft.yml workflow's update-draft job is modified to use issue-scoped GitHub CLI commands instead of PR-scoped equivalents. Label updates and analysis output posting now use gh issue edit and gh issue comment respectively, while maintaining the same issue/PR references and parameters.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/release-draft.yml
Replaced gh pr edit and gh pr comment with gh issue edit and gh issue comment in the update-draft job, maintaining the same parameters and references.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 A CLI switch so dapper and neat,
PR commands now issue-bound meet,
Labels and comments dance with new grace,
Same reference, fresh space—let's embrace!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: switching GitHub CLI commands from PR-scoped to issue-scoped to fix label permission requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

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

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: 6/8 reviews remaining, refill in 8 minutes and 36 seconds.

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

@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 (c9e87de) to head (e1f92a7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #573   +/-   ##
=========================================
  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.

@koxudaxi koxudaxi merged commit 220ed5b into main Apr 30, 2026
38 checks passed
@koxudaxi koxudaxi deleted the fix-release-draft-label-permissions branch April 30, 2026 17:39
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