sourcegraph/dev/release
coury-clark 9adbdf8041
release-tool: auto save release config when prompting for input (#48135)
Closes https://github.com/sourcegraph/sourcegraph/issues/48133

Auto save the release config when prompted for input of a new scheduled
release. Also fixes a small ordering problem in the release guide
template to push the changes to the config _after_ all the auto
generation is done.

## Test plan

Ran locally adding 4.6.0:
```
{
  "metadata": {
    "teamEmail": "team@sourcegraph.com",
    "slackAnnounceChannel": "announce-engineering"
  },
  "scheduledReleases": {
    "4.5.0": {
      "codeFreezeDate": "2023-02-15T10:00:00.000-08:00",
      "securityApprovalDate": "2023-02-15T10:00:00.000-08:00",
      "releaseDate": "2023-02-22T10:00:00.000-08:00",
      "current": "4.5.0",
      "captainGitHubUsername": "coury-clark",
      "captainSlackUsername": "coury"
    },
    "4.6.0": {
      "codeFreezeDate": "2023-03-15T10:00:00.000-07:00",
      "securityApprovalDate": "2023-03-15T10:00:00.000-07:00",
      "releaseDate": "2023-03-22T10:00:00.000-07:00",
      "current": "4.6.0",
      "captainGitHubUsername": "coury-clark",
      "captainSlackUsername": "coury"
    }
  },
  "dryRun": {
    "tags": false,
    "changesets": false,
    "trackingIssues": false,
    "calendar": false,
    "slack": false
  },
  "in_progress": {
    "captainGitHubUsername": "coury-clark",
    "captainSlackUsername": "coury",
    "releases": [
      {
        "version": "4.5.0",
        "previous": "4.4.2"
      }
    ]
  }
}
```
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

## App preview:

- [Web](https://sg-web-cclark-save-release-input.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.
2023-02-28 12:50:56 -07:00
..
.yarn [SG-39284] Upgrade yarn to the latest version (#39728) 2022-08-31 20:39:53 -07:00
src release-tool: always save release config when accepting input (#48366) 2023-02-28 17:39:19 +00:00
templates release-tool: auto save release config when prompting for input (#48135) 2023-02-28 12:50:56 -07:00
testdata dev(release): fix batch changes, improve version replacement (#23440) 2021-08-03 09:57:20 +00:00
.eslintrc.js [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
.gitignore Release captain automation scripts (#6243) 2019-10-30 10:56:14 -07:00
package.json release-tool: refactor release config (#47711) 2023-02-17 11:00:42 -07:00
README.md web: migrate from yarn to pnpm (#46143) 2023-01-11 19:50:09 -08:00
release-config.jsonc 4.6 release config (#48136) 2023-02-23 11:51:35 -07:00
tsconfig.json web: fix pnpm-lock issue (#47478) 2023-02-09 22:04:31 -08:00

Sourcegraph release tool

This directory contains scripts and code to automate our releases. Refer to the handbook for details on our release process and how this tool is used.

To see all available steps:

pnpm run release help # add 'all' to see test commands as well

Before using this tool, please verify that the release configuration is set up correctly.