Skip to content

Commit eef4c44

Browse files
authored
Merge pull request #3029 from github/mbg/copilot/release-process
Add Copilot instructions for release PRs
2 parents 60aa58a + cd41679 commit eef4c44

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/copilot-instructions.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# CodeQL Action - Copilot Instructions
22

3+
## Generated code
4+
35
The CodeQL Action is written in TypeScript and compiled to JavaScript. Both the TypeScript sources and the **generated** JavaScript code are contained in this repository. The TypeScript sources are contained in the `src` directory and the JavaScript code is contained in the `lib` directory. A GitHub Actions workflow checks that the JavaScript code in `lib` is up-to-date. Therefore, you should not review any changes to the contents of the `lib` folder and it is expected that the JavaScript code in `lib` closely mirrors the TypeScript code it is generated from.
46

5-
GitHub Actions workflows in the `.github/workflows` directory whose filenames start with two underscores (e.g. `__all-platform-bundle.yml`) are automatically generated using the `pr-checks/sync.sh` script from template files in the `pr-checks/checks` directory. Therefore, you do not need to review files in the `.github/workflows` directory that starts with two underscores. However, you should review changes to the `pr-checks` directory as well as workflows in the `.github/workflows` directory that do not start with underscores.
7+
GitHub Actions workflows in the `.github/workflows` directory whose filenames start with two underscores (e.g. `__all-platform-bundle.yml`) are automatically generated using the `pr-checks/sync.sh` script from template files in the `pr-checks/checks` directory. Therefore, you do not need to review files in the `.github/workflows` directory that start with two underscores. However, you should review changes to the `pr-checks` directory as well as workflows in the `.github/workflows` directory that do not start with underscores.
8+
9+
## Release process
10+
11+
- A release-PR is a PR which matches all of the following patterns:
12+
- PR title starts with the exact prefix: `Merge main into releases/v`
13+
- Equivalent regex: `^Merge main into releases\/v`
14+
- AND head (source) branch matches the update-branch pattern:
15+
- Regex: `^update-v[0-9]+(?:\.[0-9]+)*(?:-[a-f0-9]+)?` (e.g. `update-v3.29.9-cc722e476`)
16+
- AND base (target) branch matches a release branch:
17+
- Regex: `^releases\/v` (e.g. `releases/v3`)
18+
19+
- Consider all files in release-PRs to have already been reviewed and do not review them, except for the following two files:
20+
- `CHANGELOG.md`
21+
- `package.json`

0 commit comments

Comments
 (0)