You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of #148 and later GH issues/PRs I switched from using a fetch-depth of 0 (everything) to the last 50 commits and also included an additional step to pull the last 50 commits from the primary & development branches.
This works and in some cases may be better than before, but I applied those settings in places where it isn't strictly needed.
For example, the go.mod validation job steps don't need 50 commits to determine whether there are missing changes, just the very last commit for the PR branch being evaluated.
There are other places where a single commit is sufficient for the workflow job(s).
The text was updated successfully, but these errors were encountered:
For example, the go.mod validation job steps don't need 50 commits to determine whether there are missing changes, just the very last commit for the PR branch being evaluated.
There are other places where a single commit is sufficient for the workflow job(s).
I should clarify: the Assert PR branch is ahead job is the primary focus. It is unlikely that many commits are needed for this job to serve its purpose properly.
Of note:
- move 'Assert source branches are set' check first
within 'Assert PR branch is ahead' job as it needs
to run and is the cheapest way to fail fast if
required values are not set
- simplify code check step where extended options are
not needed (see also GH-163 for future work)
- add missing 'Fetch additional references' step for jobs
where version calculation is needed (most build & package
generation tasks)
As part of #148 and later GH issues/PRs I switched from using a
fetch-depth
of0
(everything) to the last 50 commits and also included an additional step to pull the last 50 commits from the primary & development branches.This works and in some cases may be better than before, but I applied those settings in places where it isn't strictly needed.
For example, the go.mod validation job steps don't need 50 commits to determine whether there are missing changes, just the very last commit for the PR branch being evaluated.
There are other places where a single commit is sufficient for the workflow job(s).
The text was updated successfully, but these errors were encountered: