Skip to content

Commit 3537bea

Browse files
Apply suggestions from code review
Co-authored-by: Henry Mercer <[email protected]>
1 parent 65a2bb5 commit 3537bea

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

.github/actions/release-branches/release-branches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import argparse
2-
import os, json
2+
import json
3+
import os
34
import subprocess
45

56
# Name of the remote

.github/actions/release-initialise/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Prepare release job'
2-
description: 'Executed preparatory steps before update a release branch'
2+
description: 'Prepare for updating a release branch'
33

44
runs:
55
using: "composite"

.github/update-release-branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def main():
317317
subprocess.check_output(['npm', 'version', version, '--no-git-tag-version'])
318318
run_git('add', 'package.json', 'package-lock.json')
319319

320-
# Migrate the changelog notes from v2 version numbers to v1 version numbers
320+
# Migrate the changelog notes from vLatest version numbers to vOlder version numbers
321321
print(f'Migrating changelog notes from v{source_branch_major_version} to v{target_branch_major_version}')
322322
subprocess.check_output(['sed', '-i', f's/^## {source_branch_major_version}\./## {target_branch_major_version}./g', 'CHANGELOG.md'])
323323

.github/workflows/post-release-mergeback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This workflow runs after a merge to any release branch of the action. It:
2-
# 1. Tags the merge commit on the release branch that represents the new release with n `vN.x.y`
2+
# 1. Tags the merge commit on the release branch that represents the new release with an `vN.x.y`
33
# tag
44
# 2. Updates the `vN` tag to refer to this merge commit.
55
# 3. Iff vN == vLatest, merges any changes from the release back into the main branch.

CONTRIBUTING.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,20 @@ We typically deprecate a version of CodeQL when the GitHub Enterprise Server (GH
9999
- Add a changelog note announcing the new minimum version of CodeQL that is now required.
100100
- Example PR: https://github.com/github/codeql-action/pull/1907
101101

102-
## Deprecating a CodeQL-Action version (write access required)
102+
## Deprecating a CodeQL Action version (write access required)
103103

104-
When necessary we maintain multiple versions of the CodeQL action, for example to support older version of NodeJS as required by GHES versions that are still supported. The automated release process opens backport PRs to update older versions once the primary release is merged. Deprecation of older versions of the action will generally happen once a particular older GHES version is no longer supported, and hence we can stop maintainin the action for a particular NodeJS version.
104+
We sometimes maintain multiple versions of the CodeQL Action to enable customers on older but still supported versions of GitHub Enterprise Server (GHES) to continue to benefit from the latest CodeQL improvements. To accomplish this, the release process automation listens to updates to the release branch for the newest supported version. When this branch is updated, the release process automatically opens backport PRs to update the release branches for older versions.
105105

106-
The backport process is controlled by setting the minimum version number of the action that is still supported, defined at the in the [release-branches](.github/actions/release-branches/release-branches.py) action. To stop udpating an older version of the action:
106+
We typically deprecate older versions of the Action once all supported GHES versions are compatible with the version of Node.js we are using on `main`.
107107

108-
1. Notify any users who are still pinned to the `vN` tag of the deprecated version of the action.
108+
To deprecate an older version of the Action:
109+
110+
1. Notify any users who are still pinned to the `vN` tag of the deprecated version of the Action, giving as much notice as is practical.
109111
- Add a changelog note announcing the deprecation.
110-
2. Bump the `OLDEST_SUPPORTED_MAJOR_VERSION` in [release-branches.py](.github/actions/release-branches/release-branches.py)
111-
3. Merge this change to main and the next release will not backport changes to the deprecated release version.
112+
- Implement an Actions warning for customers using the deprecated version.
113+
1. Wait for the deprecation period to pass.
114+
1. Upgrade the Actions warning for customers using the deprecated version to a non-fatal error, and mention that this version of the Action is no longer supported.
115+
1. Make a PR to bump the `OLDEST_SUPPORTED_MAJOR_VERSION` in [release-branches.py](.github/actions/release-branches/release-branches.py). Once this PR is merged, the release process will no longer backport changes to the deprecated release version.
112116

113117
## Resources
114118

0 commit comments

Comments
 (0)