uv tool install prekprek installprek run --from-ref <target_branch> --stage pre-commitprek run --from-ref <target_branch> --stage manualprek run --all-files./site.sh build-site./site.sh prepare-theme./site.sh install-node-depslanding-pages/ — Hugo-based landing pages (HTML, SCSS, JS)site/themes/docsy/ — Docsy theme (npm dependencies)sphinx_airflow_theme/ — Sphinx theme package for Airflow documentationdemo/ — theme demo site.github/workflows/ — CI workflows (build, dependabot)site.sh — main build script for the websitelicense-templates/ — Apache License templates for prek hooksWrite commit messages focused on user impact, not implementation details.
Always push to the user's fork, not to the upstream apache/airflow-site repo. Never push directly to main.
Before pushing, determine the fork remote. Check git remote -v — if origin does not point to apache/airflow-site, use origin (it‘s the user’s fork). If origin points to apache/airflow-site, look for another remote that points to the user's fork. If no fork remote exists, create one:
gh repo fork apache/airflow-site --remote --remote-name fork
Before pushing, perform a self-review of your changes:
git diff main...HEAD) and verify every change is intentional and related to the task — remove any unrelated changes.prek run --from-ref <target_branch> --stage pre-commit) and fix any failures.Before pushing, always rebase your branch onto the latest target branch (usually main) to avoid merge conflicts and ensure CI runs against up-to-date code:
git fetch <upstream-remote> <target_branch> git rebase <upstream-remote>/<target_branch>
If there are conflicts, resolve them and continue the rebase. If the rebase is too complex, ask the user for guidance.
Then push the branch to the fork remote and open the PR:
git push -u <fork-remote> <branch-name> gh pr create --web --title "Short title (under 70 chars)" --body "$(cat <<'EOF' Brief description of the changes. closes: #ISSUE (if applicable) --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — <Agent Name and Version> Generated-by: <Agent Name and Version> EOF )"
Remind the user to:
closes: #ISSUE or related: #ISSUE).