Skip to content

chore(CI): clean up pre-releases during release#3792

Open
sleidig wants to merge 3 commits intomasterfrom
chore/prerelease-cleanup
Open

chore(CI): clean up pre-releases during release#3792
sleidig wants to merge 3 commits intomasterfrom
chore/prerelease-cleanup

Conversation

@sleidig
Copy link
Copy Markdown
Member

@sleidig sleidig commented Mar 19, 2026

Summary by CodeRabbit

  • Chores
    • Automated cleanup of outdated pre-release versions to maintain a clean release history
    • Pinned semantic release action to a stable version for improved release reliability and consistency

Copilot AI review requested due to automatic review settings March 19, 2026 13:47
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 19, 2026

Warning

Rate limit exceeded

@sleidig has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 28 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4c9a46fb-589e-40a5-a4fa-18d906c6b08e

📥 Commits

Reviewing files that changed from the base of the PR and between 8046013 and 119c5a0.

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

Walkthrough

This PR updates two GitHub Actions release workflows by adding a cleanup job for pre-releases and pinning the semantic-release action to a specific version across both workflows.

Changes

Cohort / File(s) Summary
Release Workflow Updates
.github/workflows/create-release.yml
Added pre-releases-cleanup job to delete prior releases and tags matching *-master* pattern. Pinned cycjimmy/semantic-release-action from @v4 to commit SHA corresponding to v4.2.2.
Master Push Workflow
.github/workflows/on-master-push.yml
Pinned cycjimmy/semantic-release-action from @v4 to commit SHA corresponding to v4.2.2.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

released on @master``, released

Poem

🐰 With whiskers twitching, I hop with delight,
Cleaning up releases from master's old night,
Actions now pinned to their version so true,
The workflows are fresh—hooray, hip-hop, hoo!
Semantic release, now locked in place tight! 🔒

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No pull request description was provided by the author; the required template sections (issue references, PR checklist) are entirely missing. Add a complete pull request description following the template, including issue references, checklist completion, and any relevant context about the CI/workflow changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: adding cleanup of pre-releases during the release workflow, which aligns with the new pre-releases-cleanup job added to the CI workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ 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 chore/prerelease-cleanup
📝 Coding Plan
  • Generate coding plan for human review comments

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

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

@github-actions
Copy link
Copy Markdown
Contributor

Deployed to https://pr-3792.aam-digital.net/

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an automated cleanup step to the manual release workflow to remove old *-master* pre-release GitHub releases/tags before running semantic-release, helping keep the repository’s release/tag namespace tidy during official releases.

Changes:

  • Introduces a new pre-releases-cleanup job that deletes GitHub releases whose tag names contain -master and cleans up matching remote git tags.
  • Keeps existing semantic-release job for generating the stable release.

You can also share your feedback on Copilot code review. Take the survey.

@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Mar 19, 2026, 1:58 PM

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/create-release.yml:
- Around line 9-10: The release job is running in parallel with
pre-releases-cleanup; make release depend on pre-releases-cleanup so cleanup
always finishes first by adding a needs: [pre-releases-cleanup] entry to the
release job definition (and likewise add needs where the other duplicate release
job definition appears around the second occurrence referenced). Locate the
GitHub Actions job blocks named pre-releases-cleanup and release and add the
needs key to the release job to ensure serialization.
- Around line 22-24: The pipeline can fail when grep returns exit code 1 if
there are no "-master" tags; update the pipeline invoking gh release list | grep
'\-master' so the grep non-zero exit doesn't fail the step (e.g., append "||
true" to the grep command or otherwise coerce its exit to 0) before piping into
the while loop that reads tags (the sequence around gh release list --repo ...
--jq '.[].tagName' | grep '\-master' | while read -r tag; do).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f29e00ca-e25c-49b7-a449-d9d169c2d114

📥 Commits

Reviewing files that changed from the base of the PR and between 060e011 and 8046013.

📒 Files selected for processing (2)
  • .github/workflows/create-release.yml
  • .github/workflows/on-master-push.yml

@sleidig sleidig enabled auto-merge (squash) March 19, 2026 14:35
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.

2 participants