File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import {spawnSync} from 'child_process';
3
3
/**
4
4
* Class that can be used to execute Git commands within a given project directory.
5
5
*
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
7
7
* guaranteed that the working directory is always the target project directory.
8
8
*/
9
9
export class GitClient {
Original file line number Diff line number Diff line change @@ -7,6 +7,22 @@ import {promptForNewVersion} from './prompt/new-version-prompt';
7
7
import { parseVersionName , Version } from './version-name/parse-version' ;
8
8
import { getExpectedPublishBranch } from './version-name/publish-branch' ;
9
9
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
+ */
10
26
class StageReleaseTask {
11
27
12
28
/** Path to the project package JSON. */
You can’t perform that action at this time.
0 commit comments