[ 
https://issues.apache.org/jira/browse/THRIFT-6274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer resolved THRIFT-6274.
--------------------------------
    Fix Version/s: 0.25.0
         Assignee: Jens Geyer
       Resolution: Fixed

> Reject AI session and conversation links in pull request commits and text
> -------------------------------------------------------------------------
>
>                 Key: THRIFT-6274
>                 URL: https://issues.apache.org/jira/browse/THRIFT-6274
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Build Process
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 0.25.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> AGENTS.md section 4 does not allow links to AI sessions or conversations 
> ({{Claude-Session:}} trailers, {{https://claude.ai/code/session_...}}, 
> {{https://chatgpt.com/c/...}} and equivalents) in commit messages, pull 
> request descriptions, JIRA comments or e-mails. Once such a link is in git 
> history it stays there.
> A local {{commit-msg}} hook only covers the clone it is installed in, and 
> commits that are rebased or cherry-picked, including by GitHub, never run it.
> Add a GitHub Actions workflow that runs on pull request events (opened, 
> edited, reopened, synchronize) and fails when
> * a commit the pull request adds over its base branch has such a link in its 
> message, or
> * the pull request title or description contains one.
> A URL counts only with an id after the prefix, so text that merely names 
> these forms, as AGENTS.md does, passes. The check reports only the offending 
> commit ids, never the matching line, so it does not copy the link into the 
> public log.
> _Drafted with AI assistance (Claude Opus 5); reviewed and posted by Jens 
> Geyer._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to