Add configuration option `detectHostRulesFromEnv`.
BREAKING CHANGE: `hostRules` are no longer automatically derived from env variables such as `NPM_X_TOKEN`. Set `detectHostRulesFromEnv=true` in config to re-enable same functionality.
* feat(config): migrate requiredStatusChecks to ignoreTests
* fix(config): restore order of props
* feat(config): add applyMigrations function
* feat(platform): check ignoreTests param in worker
* feat(config): rename getBranchStatus to resolveBranchStatus
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Removes trustLevel and replaces it with 3 other options instead. No longer necessary to set anything additional is configuring `allowedPostUpgradeCommands`
BREAKING CHANGE: `trustLevel` is no longer supported and instead broken into `allowCustomCrateRegistries` , `allowScripts` , and `exposeAllEnv`.
Remove support for logLevel in config. Must be configured using LOG_LEVEL instead.
Closes#8291
BREAKING CHANGE: Configure LOG_LEVEL in env and not in config or CLI
* Add branch option for postUpgradeCommands
* Put the for loop back for async
* Fix tests & add documentation
* Change execution mode dependency to update
* Move postUpgradeCommand execution to seperate file
* Fix return time of upgradeTaskExecuter
* Fix test
* Finished new mode and added test
* Remove .only
* Remove defensive coding to make codecov happy
* Give inconfig a proper type
* Another missing type
* Fix typo in allowPostUpgradeCommandTemplating option description
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Move to 1 postUpgradeCommandExecutor call
* Appease the import order rule gods
* Refactor more
* Okay now it should be done
* Fix bug
* Import order rule
* Change import to a type import
* Also return artifacterrors
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Move checking if postUpgradeCommands can run
* remove unused import
* Fix prettier error
* Call getAdminConfig once
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Change type name to EnsurePrResult
* Update lib/workers/branch/index.spec.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Fix enum imports
Co-authored-by: Carlin St Pierre <cstpierre@atlassian.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>