mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 07:07:52 -06:00
fix: compare --changed with the project main line
In a fork's clone origin/main is the fork: once pushed it is HEAD, and profile_sync --changed --strict checked nothing and passed while the PR's CI then failed. The default base is now the line validate_pr.py reads: upstream/main or origin/main when that remote is the project, the project's main fetched otherwise.
This commit is contained in:
1 parent
cb4649bb23
commit
bef8b50669
3 files changed
+46
-6
No files matched your search
+4
-2
@@ -447,8 +447,10 @@ to show one cited file and `--context N` lines around each hunk. `--strict`
|
||||
exits 1 when a profile has refs to review, and CI runs it on every profile a change
|
||||
adds. `--offline` answers from `--cache-dir` alone. `--changed` selects the
|
||||
profiles the branch adds or edits, uncommitted ones included, and `--added`
|
||||
the ones it adds, both against the merge base of `--base` (`origin/main` by
|
||||
default) and HEAD.
|
||||
the ones it adds, both against the merge base of `--base` and HEAD. By
|
||||
default `--base` is the project's main line: `upstream/main` or `origin/main`
|
||||
when that remote is the project, fetched from the project in a fork's clone,
|
||||
where `origin/main` is the fork.
|
||||
|
||||
```bash
|
||||
python scripts/profile_sync.py --all --system sega-saturn --changed-only
|
||||
|
||||
Reference in new issue
Block a user