Skip to content

version bump test fix#56

Merged
HEROgold merged 1 commit intomasterfrom
CI-fix
Mar 2, 2026
Merged

version bump test fix#56
HEROgold merged 1 commit intomasterfrom
CI-fix

Conversation

@HEROgold
Copy link
Owner

@HEROgold HEROgold commented Mar 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 2, 2026 19:25
@HEROgold HEROgold merged commit 18ee512 into master Mar 2, 2026
9 checks passed
Copy link
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

Updates the repository’s automated version bump workflow to properly operate on the repo contents and attempts to streamline follow-up automation after a version bump.

Changes:

  • Add a full-history checkout step to the bump-version-by-labels GitHub Actions workflow.
  • Add an auto-merge step gated on the bump action’s version-bumped output.
  • Comment out several unused .bumpversion.toml keys.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/bump-version-by-labels.yml Adds checkout + attempts an auto-merge action after version bumping.
.bumpversion.toml Comments out optional/unused bumpversion configuration entries.

Comment on lines +30 to +35
- name: Auto-merge pull request
if: steps.bump-version.outputs.version-bumped == 'true'
run: gh pr merge --squash --auto "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

gh pr merge is being invoked for github.event.pull_request.number, but this workflow only runs when the PR is already merged (pull_request: closed + merged == true). That means this step will try to merge an already-merged PR and will fail/no-op. If the intent is to merge a version-bump PR created by the bump step, use that PR number/output instead; otherwise remove this step or move the workflow to run before merge (e.g., on label/ready_for_review events).

Suggested change
- name: Auto-merge pull request
if: steps.bump-version.outputs.version-bumped == 'true'
run: gh pr merge --squash --auto "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.

steps:
- uses: actions/checkout@v4
with:
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

On pull_request events, actions/checkout defaults to checking out the PR ref at github.sha (often a detached HEAD). If the version bump is intended to land on the base branch (master) after merge, this checkout should explicitly target the base branch/ref (or this workflow should be triggered by push to master) so the bump action commits to the correct branch.

Suggested change
with:
with:
ref: ${{ github.event.pull_request.base.ref }}

Copilot uses AI. Check for mistakes.
Comment on lines +30 to +35
- name: Auto-merge pull request
if: steps.bump-version.outputs.version-bumped == 'true'
run: gh pr merge --squash --auto "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

This job uses secrets.GITHUB_TOKEN to push/merge. For PRs coming from forks (the repo docs encourage forking), pull_request workflows run with a read-only token and no secrets, so the bump and merge steps will not be able to write back to the repo. Consider triggering this workflow on push to master (post-merge) or using a workflow_run/deployment-style workflow with appropriate permissions, rather than relying on pull_request context.

Copilot uses AI. Check for mistakes.
@HEROgold HEROgold deleted the CI-fix branch March 2, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants