Skip to content
Snippets Groups Projects
Unverified Commit bd552424 authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

update required checks copy documentation (#43003)

parent ac639eaa
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ yarn release-offline v0.77.0 1234567890abcdef1234567890abcdef12345678 --changel
When we cut a new release branch, we want to clone the current set of required checks from master. Over time, we add and remove test suites for master, but we want to keep each release branch consistent with the state of master at the time it was cut. To do this, we can run the following command after cutting a new release branch:
```sh
yarn copy-required-checks release-x.{version}.x
GITHUB_OWNER=metabase GITHUB_REPO=metabase GITHUB_TOKEN=your_github_token yarn copy-required-checks release-x.{version}.x
```
> [!important]
......
......@@ -14,6 +14,11 @@ const config = {
const targetBranch = process.argv[2];
if (!config.owner || !config.repo) {
console.error(chalk.red("You must set GITHUB_OWNER and GITHUB_REPO in your environment"));
process.exit(1);
}
if (!targetBranch) {
console.error(chalk.red("You must provide a target branch name"));
console.log("Usage: ", chalk.blue("yarn copy-required-checks <branch-to-copy-to>"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment