Skip to content

Simplify fork remote detection in AGENTS.md#62748

Merged
kaxil merged 1 commit intoapache:mainfrom
astronomer:worktree-precious-tickling-sundae
Mar 3, 2026
Merged

Simplify fork remote detection in AGENTS.md#62748
kaxil merged 1 commit intoapache:mainfrom
astronomer:worktree-precious-tickling-sundae

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Mar 3, 2026

The previous instructions required agents to look up the GitHub username via
gh api user, scan all remotes for a matching fork, and create one named after
the user. This is unnecessary when origin already points to the user's fork,
which is the common case (e.g. origin → astronomer/airflow).

Now the logic is: if origin isn't apache/airflow, use it directly. Only fall
back to searching other remotes or creating a fork when origin is the upstream
repo.


Was generative AI tooling used to co-author this PR?
  • Yes

Use `origin` directly when it isn't `apache/airflow` instead of
requiring a GitHub username lookup and remote scan. Most contributors
already have their fork as `origin` (e.g. `astronomer/airflow`), so
the extra steps were unnecessary overhead.
@kaxil kaxil merged commit 382bdc3 into apache:main Mar 3, 2026
62 checks passed
@kaxil kaxil deleted the worktree-precious-tickling-sundae branch March 3, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants