Skip to content

Commit cd41679

Browse files
committed
Manually edit PR instructions
- Conditions all must be true, not just any one of them - Make it clearer that no files should be reviewed, except for the two listed ones
1 parent 1813a6c commit cd41679

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ GitHub Actions workflows in the `.github/workflows` directory whose filenames st
88

99
## Release process
1010

11-
- Do not review PRs that match any of the following release-PR patterns:
11+
- A release-PR is a PR which matches all of the following patterns:
1212
- PR title starts with the exact prefix: `Merge main into releases/v`
1313
- Equivalent regex: `^Merge main into releases\/v`
14-
- OR head (source) branch matches the update-branch pattern:
14+
- AND head (source) branch matches the update-branch pattern:
1515
- Regex: `^update-v[0-9]+(?:\.[0-9]+)*(?:-[a-f0-9]+)?` (e.g. `update-v3.29.9-cc722e476`)
16-
- OR base (target) branch matches a release branch:
16+
- AND base (target) branch matches a release branch:
1717
- Regex: `^releases\/v` (e.g. `releases/v3`)
1818

19-
- In PRs that match the release-PR patterns above:
20-
- Review only the following files:
19+
- Consider all files in release-PRs to have already been reviewed and do not review them, except for the following two files:
2120
- `CHANGELOG.md`
2221
- `package.json`
23-
- Do not review other files in those PRs (these are considered mechanically generated updates).
24-
25-
- If a PR matches the release-PR patterns but includes changes outside the two files above, do not attempt a full review of the generated changes — treat non-`CHANGELOG.md`/`package.json` edits as not requiring review.

0 commit comments

Comments
 (0)