FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release process: Automatically rebuild PRs by henrymercer · Pull Request #3914 · github/codeql-action · GitHub

Release process: Automatically rebuild PRs - #3914

Merged
henrymercer merged 4 commits into
mainfrom
henrymercer/auto-rebuild-release-prs
May 19, 2026
Merged

Release process: Automatically rebuild PRs#3914
henrymercer merged 4 commits into
mainfrom
henrymercer/auto-rebuild-release-prs

Conversation

Copy link
Copy Markdown
Contributor

Automatically rebuild the backport and mergeback PRs so maintainers don't have to do the "remove and readd "Rebuild" label, wait for rebuild, mark PR as ready for review" dance twice on each release.

Since we need to revert the modifications to the build artifacts in the backport PRs, we continue to produce a separate "Rebuild" commit to keep code changes isolated.

Copilot AI review requested due to automatic review settings May 18, 2026 18:14
henrymercer requested a review from a team as a code owner May 18, 2026 18:14
github-actions Bot added the size/S Should be easy to review label May 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR updates the release automation to automatically rebuild distribution artifacts for mergeback and backport PRs, eliminating the manual “remove/re-add Rebuild label” step while still keeping rebuild changes isolated in dedicated commits.

Changes:

  • Add an automatic rebuild+commit step for mergeback branches in prepare-mergeback-branch (and align Node version usage).
  • Add an automatic rebuild+commit step for backport branches in .github/update-release-branch.py.
  • Enable Node 24 + npm caching in relevant release workflows/actions.
Show a summary per file
File Description
.github/workflows/post-release-mergeback.yml Sets up Node 24 and npm caching for the mergeback workflow.
.github/update-release-branch.py Adds “Rebuild” commit automation for backport branches and updates revert logic.
.github/actions/release-initialise/action.yml Bumps Node to 24 and enables npm cache for release automation jobs.
.github/actions/prepare-mergeback-branch/action.yml Automatically rebuilds artifacts and conditionally creates a “Rebuild” commit before pushing the mergeback branch.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Comment thread .github/update-release-branch.py Outdated
henrymercer force-pushed the henrymercer/auto-rebuild-release-prs branch from 7510620 to 8442bc0 Compare May 18, 2026 18:19
mbg previously approved these changes May 18, 2026

mbg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks OK and this isn't blocking, but I'd really like to get the remaining Python scripts / parts of the workflows converted to TypeScript 😅

Comment on lines +45 to +69
- name: Rebuild the Action
shell: bash
run: |
set -exu
npm ci
npm run build

- name: Check for rebuild changes
id: rebuild_changes
shell: bash
run: |
set -exu
git add --all
if git diff --cached --quiet; then
echo "has_changes=false" >> "${GITHUB_OUTPUT}"
else
echo "has_changes=true" >> "${GITHUB_OUTPUT}"
fi

- name: Commit rebuild
if: steps.rebuild_changes.outputs.has_changes == 'true'
shell: bash
run: |
set -exu
git commit -m "Rebuild"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could we make this a reusable action?

henrymercer May 18, 2026
edited
Loading

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I considered that, but in this case we're only interested in running npm run build — running the linter, sync_back and sync is pointless.

Copy link
Copy Markdown
Contributor Author

This looks OK and this isn't blocking, but I'd really like to get the remaining Python scripts / parts of the workflows converted to TypeScript 😅

I'd also prefer that they were written in TypeScript, but this change isn't making them much more complex, and I don't have capacity to port them at the moment.

henrymercer requested a review from mbg May 18, 2026 18:38
Comment thread .github/update-release-branch.py Outdated
henrymercer added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 3b0e64c May 19, 2026
225 checks passed
henrymercer deleted the henrymercer/auto-rebuild-release-prs branch May 19, 2026 18:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Should be easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL