feat(action): add PR re-titling option when AI is detected (#84) - #95
Draft
neo0007777 wants to merge 1 commit into
Draft
feat(action): add PR re-titling option when AI is detected (#84)#95neo0007777 wants to merge 1 commit into
neo0007777 wants to merge 1 commit into
Conversation
Add retitling-enabled and title-prefix inputs to allow communities with a no-AI policy to automatically prepend a configurable prefix (e.g. '[AI Detected] ') to a PR title when AI involvement is detected. The step guards against double-prefixing by checking if the current title already starts with the configured prefix before patching it. Requires pull-requests: write permission when enabled. Signed-off-by: Shiva Sharma <shivaumj@gmail.com>
Contributor
|
@neo0007777 you currently have over half of the currently open PRs on this repo. We notice/appreceate your energy/enthusiasm and would like you to join the community (we chat on the The pace at which your are submitting code, especially larger changes, is outpacing our available time to review changes and we'd love to work with you to make sure that we can use our review time as effectively as possible. |
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.
Description
Adds retitling-enabled and title-prefix inputs so communities with a no-AI policy can automatically add a configurable prefix, such as [AI Detected] , to a PR title when AI involvement is detected. The step also prevents double-prefixing by checking whether the current title already starts with the configured prefix before updating it. This requires pull-requests: write permission when enabled.
This PR fixes #84
Notes for Reviewers
Signed commits
[x] Yes, I signed my commits.
Generative AI disclosure
Please select one option:
If AI tools were used, please provide details below:
What tools were used?
How were these tools used?
Did you review these outputs before submitting this PR?