rhythmic-morning-87313
05/05/2022, 4:50 PM--changed-since
option in GitHub Actions CI.
suggestion) The doc says ./pants --changed-since=... lint
but this fails with missing target error and ./pants --changed-since=... lint ::
fails since the --changed-since
flag and explicit target args are mutually exclusive. I could workaround it by using ./pants lint --changed-since=...
. I believe that the docs should be updated.
question) I'm going to use origin/$GITHUB_BASE_REF
as the argument of --changed-since
. But it says fatal: bad revision 'origin/main...HEAD'
in a PR. This may be due to the highly limited fetch-depth (default: 1). How could I fetch the commits that are exactly required for --changed-since
?hundreds-father-404
05/05/2022, 4:50 PM--changed-since=FOO lint
, w/o the ::
. Are you seeing elsewhere in the docs?rhythmic-morning-87313
05/05/2022, 4:51 PMlint --changed-since=FOO
.rhythmic-morning-87313
05/05/2022, 5:43 PMgit fetch --no-tags --depth=1 origin $GITHUB_BASE_REF
before executing ./pants lint ...
and it seems to work as expectedrhythmic-morning-87313
05/05/2022, 5:48 PM--changed-since
option in github actions workflows.rhythmic-morning-87313
05/05/2022, 5:49 PMhundreds-father-404
05/05/2022, 6:23 PMrhythmic-morning-87313
05/06/2022, 2:06 AMhundreds-father-404
05/06/2022, 2:21 AM