We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEAD
- A (merge base) - B (remote HEAD) \ C (PR HEAD) - C' (auto-fixed commit)
when autofix.ci creates commit C' from C, it seems to apply changes on top of B, not C.
autofix.ci
C'
C
B
let's assume repo for above graph
file.txt
CapitalCase
foo
Foo
on commit A:
A
1. Hello 2. World
on commit B:
- 1. Hello 2. World
on commit C:
1. Hello 2. World + 3. person
on commit C', the auto-fixed one also applies changes from commit B:
- 1. Hello 2. World - 3. person + 3. Person
I find this a bit odd, because i was expecting the formatting to be localized to C, like:
1. Hello 2. World - 3. person + 3. Person
In locations_commercial.json, line 343 is inserted.
locations_commercial.json
diff --git a/data/json/itemgroups/Locations_MapExtras/locations_commercial.json b/data/json/itemgroups/Locations_MapExtras/locations_commercial.json index faa4415..17dcf92 100644 --- a/data/json/itemgroups/Locations_MapExtras/locations_commercial.json +++ b/data/json/itemgroups/Locations_MapExtras/locations_commercial.json @@ -337,7 +337,7 @@ [ "bandolier_shotgun", 8 ], [ "torso_bandolier_shotgun", 3 ], [ "holster", 8 ], - [ "shoulder_holster", 4 ], + [ "shoulder_holster", 4 ], [ "bootstrap", 2 ], [ "wristholster", 1 ], [ "bholster", 5 ],
In the log, we can find out that for locations_commercial.json, only line 343 is formatted.
However, in the commit autofix.ci has made, line 14 to 16 is also removed.
This is unexpected because the PR's merge base was older than its removal.
cataclysmbnteam/Cataclysm-BN#3981 (comment)
The text was updated successfully, but these errors were encountered:
Ughs, thanks for catching this! This definitely is a bug in the action right now. I guess we need to do something like this to fix it:
Sorry, something went wrong.
No branches or pull requests
Summary
when
autofix.ci
creates commitC'
fromC
, it seems to apply changes on top ofB
, notC
.Example
let's assume repo for above graph
file.txt
CapitalCase
, sofoo
->Foo
on commit
A
:on commit
B
:- 1. Hello 2. World
on commit
C
:1. Hello 2. World + 3. person
on commit
C'
, the auto-fixed one also applies changes from commitB
:I find this a bit odd, because i was expecting the formatting to be localized to
C
, like:Workflow Run With the issue
before formatting
In
locations_commercial.json
, line 343 is inserted.During formatting
In the log, we can find out that for
locations_commercial.json
, only line 343 is formatted.After formatting
However, in the commit
autofix.ci
has made, line 14 to 16 is also removed.corresponding commit URLs since the PR branch is now deleted
This is unexpected because the PR's merge base was older than its removal.
Additional Context
cataclysmbnteam/Cataclysm-BN#3981 (comment)
The text was updated successfully, but these errors were encountered: