You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2026/02/27 16:24:01 UTC

(airflow) branch add-pr-template-instructions-for-agents updated (7263663957f -> f9166b37f44)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a change to branch add-pr-template-instructions-for-agents
in repository https://gitbox.apache.org/repos/asf/airflow.git


 discard 7263663957f Add PR creation instructions for AI agents to AGENTS.md
     new f9166b37f44 Add PR creation instructions for AI agents to AGENTS.md

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (7263663957f)
            \
             N -- N -- N   refs/heads/add-pr-template-instructions-for-agents (f9166b37f44)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 AGENTS.md | 35 ++++++++++-------------------------
 1 file changed, 10 insertions(+), 25 deletions(-)


(airflow) 01/01: Add PR creation instructions for AI agents to AGENTS.md

Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch add-pr-template-instructions-for-agents
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit f9166b37f44f4d80798b8355cf38e2d248115d0e
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri Feb 27 17:19:58 2026 +0100

    Add PR creation instructions for AI agents to AGENTS.md
    
    Agents must create PRs via `gh pr create --web` to open the browser
    with the repository's PR template pre-filled. Includes instructions
    to disclose generative AI usage with the Generated-by line.
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 AGENTS.md | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/AGENTS.md b/AGENTS.md
index 456a87ca4b2..e1372fa6570 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -81,6 +81,31 @@ Write commit messages focused on user impact, not implementation details.
 Add a newsfragment for user-visible changes:
 `echo "Brief description" > airflow-core/newsfragments/{PR_NUMBER}.{bugfix|feature|improvement|doc|misc|significant}.rst`
 
+### Creating Pull Requests
+
+**Always create PRs via the GitHub web interface** so that the repository's PR template
+(`.github/PULL_REQUEST_TEMPLATE.md`) is auto-populated. Never push directly to `main`.
+
+After pushing your branch, open the PR creation page in the browser:
+
+```
+git push -u origin <branch-name>
+gh pr create --web
+```
+
+The `--web` flag opens the browser with the PR template pre-filled. Remind the user to:
+
+1. Write a short PR title (under 70 chars) focused on user impact.
+2. Add a brief description of the changes at the top of the body.
+3. Reference related issues when applicable (`closes: #ISSUE` or `related: #ISSUE`).
+4. Check the **generative AI disclosure** checkbox and uncomment the `Generated-by` line:
+
+```
+- [X] Yes — Claude Code
+
+Generated-by: Claude Code following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
+```
+
 ## Boundaries
 
 - **Ask first**