Skip to content

Commit 48940a3

Browse files
authored
chore: add AI agent involvement to PR template (#23281)
1 parent 6f6cd8a commit 48940a3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.ai/skills/docs-pr-metadata-guard/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Before changing a PR body, read `.github/pull_request_template.md`.
2222
- Default to `master` only for general improvements, wording fixes, missing-content additions, and corrections not tied to a specific released behavior.
2323
- Check the affected release branch(es) together with `master` when the change involves version-specific behavior, compatibility changes, changed defaults, or fixes in published docs.
2424
- **What is the related PR or file link(s)?**: fill in the translation source link under `This PR is translated from:` when the PR is a translation from `docs-cn`. Fill in other reference links such as product PRs, issues, or related doc PRs under `Other reference link(s):`.
25+
- **AI agent involvement**: when this section is present in the template, keep it intact. Check its checkbox only when the changes were primarily made by an AI agent on behalf of the PR author; otherwise leave it unchecked.
2526
- **Do your changes match any of the following descriptions?**: check all that apply. If the change needs different wording on another branch, check `Need modification after applied to another branch` and comment `/label version-specific-changes-required`.
2627
4. Choose the correct base branch.
2728
- Default to `master` for most documentation PRs.
@@ -74,6 +75,7 @@ The version checkboxes in the PR template follow a specific order from newest to
7475
- The version checkbox section preserves the template's canonical version list and order.
7576
- The "Tips for choosing the affected version(s)" paragraph and the `CONTRIBUTING.md` link are present between the version heading and the checkboxes.
7677
- The related-link fields (`This PR is translated from:` and `Other reference link(s):`) are present, even if left at their default values.
78+
- The `AI agent involvement` section is present when defined by the template, and its checkbox accurately reflects whether an AI agent primarily made the changes on the PR author's behalf.
7779
- The "Do your changes match any of the following descriptions?" section is present with its checkboxes intact.
7880
- The first-time contributors' checklist is either correctly filled in or removed entirely as instructed.
7981
- The base branch matches the change scope: `master` by default, `release-8.5` for TiDB Cloud, or a specific `release-X.Y` for version-scoped fixes.

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ For details, see [tips for choosing the affected versions](https://github.com/pi
3838
- This PR is translated from:
3939
- Other reference link(s):
4040

41+
### AI agent involvement
42+
43+
- [ ] The changes in this PR were primarily made by an AI agent on behalf of the PR author.
44+
4145
### Do your changes match any of the following descriptions?
4246

4347
- [ ] Delete files

0 commit comments

Comments
 (0)