[infra] Surface the ASF generative-AI disclosure in the PR template - #933
Open
weiqingy wants to merge 1 commit into
Open
[infra] Surface the ASF generative-AI disclosure in the PR template#933weiqingy wants to merge 1 commit into
weiqingy wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue: #932
Purpose of change
The ASF generative tooling guidance asks contributors to disclose when generative AI tooling was used to author or co-author a contribution. Our PR template has no field for that, and
AGENTS.mddoes not mention it, so the disclosure is not surfaced anywhere in this project today.This adds a disclosure section to the PR template, plus one sentence in the
AGENTS.mdcommit and PR guidelines recording the same convention, so that a human contributor and a coding agent reading the repo guide both know to fill it in.The wording follows the shorter of the two Apache precedents.
apache/auronuses a yes/no question with aGenerated-byinstruction and a link to the ASF guidance.apache/flinkuses a longer form with a commented-out trailer plus a project policy line stating that low-effort AI-generated PRs will be closed. I left that policy line out, since it is a project decision rather than a mechanical alignment with the ASF guidance, and seems better raised on its own if maintainers want it.Two small choices worth a reviewer's eye:
Generated-byline is requested in the PR description rather than as a commit message trailer, because this project squash-merges and a per-commit trailer would not reliably survive.Tests
Not applicable, documentation only, no logic change.
Ran
python3 tools/check-agents-md.py: passes, confirming theAGENTS.mdedit leaves the version facts the checker asserts untouched.Ran
./tools/check-license.sh: RAT checks pass.API
No. No code or public API change.
Documentation
doc-includedWas this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code 2.1.220