opentofu/scripts
Martin Atkins c2ec25e359 build: goimports check relative to PR base branch
At the risk of a little bit of hidden spooky action at a distance, this
will slightly change the behavior of the "goimports check" to compare
against the base branch of a PR rather than to origin/main if we happen
to find one of the environment variables that GitHub Actions sets
automatically in its runners. This is targeting our "checks.yml" workflow
in particular.

The intention here is to avoid misreporting files that haven't actually
changed when a PR is targeting a branch other than the main branch, such
as directly targeting a historical release branch.

We'll still run against origin/main when we're not running in GitHub
Actions, since that's _typically_ the correct branch to use for new
work, even if it will eventually get backported to a release branch.
2022-08-26 09:47:30 -07:00
..
build.sh Fix for newer go version (#30889) 2022-04-22 14:30:35 +01:00
changelog-links.sh Fixed regexp to process comma-separated links to github issues in CHANGELOG.md 2016-10-27 20:07:37 +02:00
debug-terraform no need for TF_FORK=0 2021-10-28 11:51:39 -04:00
exhaustive.sh build: GitHub Actions "Quick Checks" workflow 2022-04-04 08:12:44 -07:00
gofmtcheck.sh add staticcheck make target 2021-09-01 11:36:21 -04:00
gogetcookie.sh build: refresh go.googlesource.com cookie (#20558) 2019-03-05 08:31:36 -08:00
goimportscheck.sh build: goimports check relative to PR base branch 2022-08-26 09:47:30 -07:00
staticcheck.sh build: Disable errors for deprecated functions in staticcheck 2022-08-22 10:59:12 -07:00