GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enable rebuilding PRs with conflicts by henrymercer · Pull Request #3014 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Since we check in our compiled code, we frequently get merge conflicts in the compiled code. We have a rebuild Action, but label triggers don't run when there are merge conflicts. So this PR adds a workflow_dispatch trigger that lets us rebuild a PR with conflicts via workflow_dispatch.

Example run: https://github.com/github/codeql-action/actions/runs/16809277853

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
Allow running rebuild workflow on workflow dispatch
ddc8e21
@henrymercer
henrymercer requested a review from a team as a code owner August 7, 2025 16:20
Copilot AI review requested due to automatic review settings August 7, 2025 16:20
Copilot AI reviewed Aug 7, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables rebuilding PRs with merge conflicts by adding a workflow_dispatch trigger to the rebuild workflow. Since label triggers don't work when PRs have conflicts, this provides an alternative way to rebuild the compiled code through manual workflow dispatch.

  • Added workflow_dispatch trigger alongside existing label trigger
  • Updated condition logic to handle both trigger types with fallback values
  • Moved PR-specific operations (label removal, commenting) to be conditional on pull request events
Comments suppressed due to low confidence (2)

.github/workflows/rebuild.yml:80

  • The set-output command is deprecated and will be removed. Use echo "changes=true" >> $GITHUB_OUTPUT instead.
            echo "::set-output name=changes::true"

.github/workflows/rebuild.yml:92

  • [nitpick] The notification logic has been moved outside the conditional block but still executes the same commands. This creates duplicate logic that was previously inside the 'if' statement. Consider keeping this logic together with the push operation or clearly separating the concerns.
          echo "Pushed a commit to rebuild the Action." \
            "Please mark the PR as ready for review to trigger PR checks." |
            gh pr comment --body-file - --repo github/codeql-action "$PR_NUMBER"
          gh pr ready --undo --repo github/codeql-action "$PR_NUMBER"

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
Use updated output API
3425bf9
@henrymercer henrymercer mentioned this pull request Aug 7, 2025
Rust: remove shipped feature flag #2960
Merged
3 tasks done
mbg
mbg previously approved these changes Aug 7, 2025
View reviewed changes
Comment thread .github/workflows/rebuild.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
Update .github/workflows/rebuild.yml
2ee230f
@henrymercer
henrymercer dismissed mbg’s stale review via 2ee230f August 7, 2025 16:34
@henrymercer
henrymercer requested a review from mbg August 7, 2025 16:35
mbg
mbg previously approved these changes Aug 7, 2025
View reviewed changes
@henrymercer
Finish merge if in progress
bf301d1
@henrymercer
henrymercer dismissed mbg’s stale review via bf301d1 August 7, 2025 16:46
henrymercer added 2 commits August 7, 2025 17:50
@henrymercer
Improve logging
1fd38a4
@henrymercer
Avoid specifying branch unnecessarily
2afb4e6
@henrymercer
henrymercer force-pushed the henrymercer/rebuild-dispatch branch 3 times, most recently from 4175311 to eaa1870 Compare August 7, 2025 17:18
@henrymercer
Finish in-progress merges
bd62bf4
@henrymercer
henrymercer force-pushed the henrymercer/rebuild-dispatch branch from eaa1870 to bd62bf4 Compare August 7, 2025 17:22
@henrymercer
henrymercer requested a review from mbg August 7, 2025 17:25
mbg
mbg approved these changes Aug 7, 2025
View reviewed changes
@henrymercer
henrymercer merged commit 679a40d into main Aug 8, 2025
@henrymercer
henrymercer deleted the henrymercer/rebuild-dispatch branch August 8, 2025 08:45
@github-actions github-actions Bot mentioned this pull request Aug 8, 2025
Merge main into releases/v3 #3019
Merged
8 tasks
@henrymercer henrymercer mentioned this pull request Aug 21, 2025
Bundle Actions using esbuild #3054
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@mbg mbg mbg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@henrymercer @mbg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.