Skip to content

Commit 1fe51d5

Browse files
committed
Update upgrade documentation
Improve the documentation and automatic commit message for upgrades.
1 parent 4b13ea4 commit 1fe51d5

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/upgrade_codeql_dependencies.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,17 @@ jobs:
5555
- name: Create Pull Request
5656
uses: peter-evans/create-pull-request@v3
5757
with:
58-
title: "Upgrading `github/codeql` dependency to ${{ github.event.inputs.codeql_cli_version }}"
59-
body: "This PR upgrades the CodeQL CLI version to ${{ github.event.inputs.codeql_cli_version }}."
58+
title: "Upgrade `github/codeql` dependency to ${{ github.event.inputs.codeql_cli_version }}"
59+
body: |
60+
This PR upgrades the CodeQL CLI version to ${{ github.event.inputs.codeql_cli_version }}.
61+
62+
## CodeQL dependency upgrade checklist:
63+
64+
- [ ] Confirm the code has been correctly reformatted according to the new CodeQL CLI.
65+
- [ ] Identify any CodeQL compiler warnings and errors, and update queries as required.
66+
- [ ] Validate that the `github/codeql` test cases succeed.
67+
- [ ] Address any CodeQL test failures in the `github/codeql-coding-standards` repository.
68+
- [ ] Validate performance vs pre-upgrade, using /test-performance
6069
commit-message: "Upgrading `github/codeql` dependency to ${{ github.event.inputs.codeql_cli_version }}"
6170
delete-branch: true
6271
branch: "codeql/upgrade-to-${{ github.event.inputs.codeql_cli_version }}"

docs/development_handbook.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -514,23 +514,15 @@ To upgrade the CodeQL external dependencies:
514514
5. Submit a Pull Request to the `github/codeql-coding-standards` repository with the title `Upgrade `github/codeql` dependency to <insert codeql_standard_library value>`. Use this template for the description, filling :
515515

516516
```md
517-
This PR updates the `supported_codeql_configs.json` file to target:
518-
519-
- CodeQL CLI <codeql_cli>
520-
- CodeQL Standard Library <codeql_standard_library>
521-
- GHES <ghes>
522-
- CodeQL CLI Bundle <date_of_bundle>
523-
524-
<EITHER:This should match the versions of CodeQL deployed with GitHub Enterprise Server <ghes>>
525-
<OR: This does not match any released version of GitHub Enterprise Server.>
517+
This PR updates the `supported_codeql_configs.json` file to target CodeQL CLI <codeql_cli>.
526518

527519
## CodeQL dependency upgrade checklist:
528520

529-
- [ ] Reformat our CodeQL using the latest version (if required)
521+
- [ ] Confirm the code has been correctly reformatted according to the new CodeQL CLI.
530522
- [ ] Identify any CodeQL compiler warnings and errors, and update queries as required.
531523
- [ ] Validate that the `github/codeql` test cases succeed.
532524
- [ ] Address any CodeQL test failures in the `github/codeql-coding-standards` repository.
533-
- [ ] Validate performance vs pre-upgrade
525+
- [ ] Validate performance vs pre-upgrade, using /test-performance
534526
```
535527

536528
6. Follow the dependency upgrade checklist, confirming each step. The `.github/workflows/standard_library_upgrade_tests.yml` will trigger automation for running the `github/codeql` unit tests with the appropriate CLI version.

0 commit comments

Comments
 (0)