Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ git config core.hooksPath .githooks

CI runs `Tools/ForDevelopers/scripts_json.py check` on every pull request; its docstring and its failure message give the repair command.

## Pull requests

PRs target `noelrohi/Scripts` (base `Skua`); auqw/Scripts is upstream and gets none. After opening one, check the URL names `noelrohi/Scripts`.

## Upstream sync

Merging `upstream/Skua` (auqw/Scripts) into `Skua`:

1. On a `sync/upstream-<date>` branch, `git merge --no-ff upstream/Skua`.
2. Where the fork deliberately changed or deleted a Script, keep the fork's side and fold in upstream's new fixes.
3. Resolve `scripts.json` by regenerating it: `git checkout --ours scripts.json && git add scripts.json && python3 Tools/ForDevelopers/scripts_json.py sync --all`.
4. Before pushing: `scripts_json.py check` passes, and `skua scripts check <path>` passes for every `.cs` the merge changes.
5. Title the PR `Merge upstream auqw/Scripts Skua (<N> commits)` and merge it with a merge commit, so the next sync finds the right merge base. #40 and #42 show the body.

## Testing a branch on a Skua Engine

Push the branch, then point the Engine's Script Source at it and sync:
Expand Down
3 changes: 3 additions & 0 deletions Tools/ForDevelopers/scripts_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def dump(entries):


def staged_entries():
if git("ls-files", "--unmerged", "--", SCRIPTS_JSON):
sys.exit(f"{SCRIPTS_JSON} is unmerged. Pick a side and stage it, then sync again:\n"
f" git checkout --ours {SCRIPTS_JSON} && git add {SCRIPTS_JSON}")
return json.loads(git("show", ":" + SCRIPTS_JSON))


Expand Down
Loading