Skip to content

Commit 90057e8

Browse files
committed
Improve comments
1 parent 4b8738f commit 90057e8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tools/release/git/git-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {spawnSync} from 'child_process';
33
/**
44
* Class that can be used to execute Git commands within a given project directory.
55
*
6-
* Relying on the working directory of the current process is not good because it's not
6+
* Relying on the working directory of the current process is not good because it's not
77
* guaranteed that the working directory is always the target project directory.
88
*/
99
export class GitClient {

tools/release/stage-release.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ import {promptForNewVersion} from './prompt/new-version-prompt';
77
import {parseVersionName, Version} from './version-name/parse-version';
88
import {getExpectedPublishBranch} from './version-name/publish-branch';
99

10+
/**
11+
* Class that can be instantiated in order to stage a new release. The tasks requires user
12+
* interaction/input through command line prompts.
13+
*
14+
* Staging a release involves the following the steps:
15+
*
16+
* 1) Prompt for release type (with version suggestion)
17+
* 2) Prompt for version name if no suggestions has been selected
18+
* 3) Assert that the proper publish branch is checked out (e.g. 6.4.x for patches)
19+
* 4) Assert that there are no local changes which are uncommitted.
20+
* 5) Assert that the local branch is up to date with the remote branch.
21+
* 6) Creates a new branch for the release staging (release-stage/{VERSION})
22+
* 7) Switches to the staging branch and updates the package.json
23+
* 8) Waits for the user to continue (users can generate the changelog in the meanwhile)
24+
* 9) Create a commit that includes all changes in the staging branch.
25+
*/
1026
class StageReleaseTask {
1127

1228
/** Path to the project package JSON. */

0 commit comments

Comments
 (0)