Skip to content

Fix release draft gh repository context#572

Merged
koxudaxi merged 1 commit intomainfrom
fix-release-draft-gh-repo
Apr 30, 2026
Merged

Fix release draft gh repository context#572
koxudaxi merged 1 commit intomainfrom
fix-release-draft-gh-repo

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

@koxudaxi koxudaxi commented Apr 30, 2026

Summary

  • Pass --repo "$GITHUB_REPOSITORY" to gh pr calls in the release draft update job
  • Pass the same repository context to gh release calls so the job works without checkout

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 configuration for improved reliability.

@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: 6717daa9-2b9e-4154-8bde-72c0746accb5

📥 Commits

Reviewing files that changed from the base of the PR and between fa6ea89 and d2d7619.

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

Walkthrough

The GitHub Actions release workflow now includes explicit repository scoping (--repo "$GITHUB_REPOSITORY") across all GitHub CLI operations targeting PRs and releases, including label editing, comments, release listing, viewing, editing, creation, and deletion.

Changes

Cohort / File(s) Summary
GitHub Actions Release Workflow
.github/workflows/release-draft.yml
Added --repo "$GITHUB_REPOSITORY" flag to all gh CLI commands (pr edit, pr comment, release list, release view, release edit, release create, release delete) for explicit repository scoping.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 With whiskers twitching, I declare with glee,
Repository flags now explicit we see!
Each gh command knows just where to roam,
No ambiguity—this workflow's home! 🏠

🚥 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 'Fix release draft gh repository context' directly and concisely summarizes the main change: adding repository context parameters to gh CLI operations in the release draft workflow.
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-gh-repo

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

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

@github-actions
Copy link
Copy Markdown
Contributor

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

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

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #572   +/-   ##
=========================================
  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 c9e87de into main Apr 30, 2026
38 checks passed
@koxudaxi koxudaxi deleted the fix-release-draft-gh-repo branch April 30, 2026 17:24
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