Skip to content

Convert update-release-branch.py to TypeScript - #4010

Merged
mbg merged 30 commits into
mainfrom
mbg/ts/update-release-branch
Jul 21, 2026
Merged

Convert update-release-branch.py to TypeScript#4010
mbg merged 30 commits into
mainfrom
mbg/ts/update-release-branch

Conversation

@mbg

@mbgmbg commented Jul 14, 2026

Copy link
Copy Markdown
Member

Converts the update-release-branch.py script to TypeScript following the same approach we have used to convert other legacy, Python scripts to TypeScript. The existing update-release-branch.py script had no tests. I have added some here, but adding full test coverage for this part of the automation requires a lot more work and refactoring of the new script. To keep it somewhat reviewable, the TypeScript version is kept similar to the Python one.

Risk assessment

For internal use only. Please select the risk level of this change:

  • High risk: Changes are not fully under feature flags, have limited visibility and/or cannot be tested outside of production.

Which use cases does this change impact?

Environments:

  • Testing/None - This change does not impact any CodeQL workflows in production.

How did/will you validate this change?

  • Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files).
  • None - I am not validating these changes.

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Development/testing only - This change cannot cause any failures in production.

How will you know if something goes wrong after this change is released?

  • Other - Please provide details.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

@mbgmbg self-assigned this Jul 14, 2026
@mbg
mbg requested a review from CopilotJuly 14, 2026 13:19
@github-actionsgithub-actionsBot added the size/XL May be very hard to review label Jul 14, 2026

CopilotAI 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.

Pull request overview

Ports release-branch preparation and backport automation from Python to TypeScript.

Changes:

  • Adds TypeScript release, changelog, API, and dry-run logic.
  • Updates release workflows and dependency installation.
  • Adds shared paths and editor skill settings.
Show a summary per file
FileDescription
pr-checks/update-release-branch.tsImplements release branch preparation and PR creation.
pr-checks/changelog.tsImplements changelog transformations.
pr-checks/config.tsAdds shared paths and dry-run options.
.github/workflows/update-release-branch.ymlInvokes the TypeScript script.
.github/actions/release-initialise/action.ymlInstalls JavaScript dependencies.
.github/actions/release-branches/action.ymlRemoves redundant dependency installation.
.vscode/settings.jsonAdds agent skill locations.

Review details

  • Files reviewed: 7/7 changed files
  • Comments generated: 9
  • Review effort level: Medium

Comment threadpr-checks/update-release-branch.ts
Comment threadpr-checks/update-release-branch.ts Outdated
Comment threadpr-checks/update-release-branch.ts Outdated
Comment threadpr-checks/update-release-branch.ts
Comment threadpr-checks/changelog.ts Outdated
Comment thread.vscode/settings.json Outdated
Comment thread.github/workflows/update-release-branch.yml
Comment threadpr-checks/update-release-branch.ts Outdated
Comment threadpr-checks/config.ts Outdated
Comment threadpr-checks/changelog.ts Fixed
@mbg
mbgforce-pushed the mbg/ts/update-release-branch branch from 29bc2b4 to ae48798CompareJuly 14, 2026 14:51
@mbg
mbg requested a review from CopilotJuly 14, 2026 16:02

CopilotAI 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.

Review details

  • Files reviewed: 9/9 changed files
  • Comments generated: 3
  • Review effort level: Medium

Comment threadpr-checks/update-release-branch.ts Outdated
Comment threadpr-checks/update-release-branch.ts
Comment thread.github/workflows/update-release-branch.yml
@github-actionsgithub-actionsBot added size/XXL May be extremely hard to review and removed size/XL May be very hard to review labels Jul 15, 2026
@mbg
mbg marked this pull request as ready for review July 15, 2026 11:02
@mbg
mbg requested a review from a team as a code ownerJuly 15, 2026 11:02

@henrymercerhenrymercer 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.

This has now been tested on a test repo, so let's try it out.

@mbg
mbg added this pull request to the merge queueJul 21, 2026
Merged via the queue into main with commit 115e8cbJul 21, 2026
226 checks passed
@mbg
mbg deleted the mbg/ts/update-release-branch branch July 21, 2026 13:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXLMay be extremely hard to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@mbg@henrymercer@github-advanced-security