Add option to select DIFF_HEAD for changed files comparsion#38
Add option to select DIFF_HEAD for changed files comparsion#38henry2423 wants to merge 6 commits intonorio-nomura:masterfrom
Conversation
33f6be9 to
d29161d
Compare
|
This solution works for me, but I removed this line. What is this for? |
@richimf These configs are the options you can give to |
|
Any chance we can get this merged soon? It's a pretty major improvement and a ticket has been open for this issue for a pretty long time now. |
See norio-nomura#38 which has stalled.
|
Any news? This update is an important issue @norio-nomura |
|
In case you don't already know, I had issues with this https://github.com/norio-nomura/action-swiftlint. @sinoru's version https://github.com/sinoru/actions-swiftlint solved most of them, and the code is clearly maintained. |
I don't see that it is clearly maintained, there are no pull requests, it is not nice to promote own fork in the original repo |
There's an issue report on #23. The
DIFF_BASE: ${{ github.base_ref }}may not work in some cases, for example, the pull_request checking. The reason for that is: For the pull_request, theactions/checkoutwill set the HEAD to therefs/remotes/pull/{PR_NUMBER}/merge,but the${{ github.base_ref }}isn't set. So we have to fetch the${{ github manually.base_ref }}(usually the master). The original diff comparison only runs onFETCH_HEADand givenbase_ref.But in this case, theFETCH_HEADwill be thebase_refbecause we call thegit fetch.Therefore, I set up a customizableHEADandBASEparameters gives us more flexibility to deal with more jobs scenario, like the above case.And for the backward compatibility, I didn't remove the old implement to ensure the others won't break.