release-please 13.12.0 → 13.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [13.13.0](https://github.com/googleapis/release-please/compare/v13.12.0...v13.13.0) (2022-04-18)
8
+
9
+
10
+ ### Features
11
+
12
+ * add a flag to disable adding labels to new pull requests ([#1399](https://github.com/googleapis/release-please/issues/1399)) ([3957ef5](https://github.com/googleapis/release-please/commit/3957ef542512eb1ae2c3353b3c2a7fde4540c731))
13
+
7
14
  ## [13.12.0](https://github.com/googleapis/release-please/compare/v13.11.1...v13.12.0) (2022-04-15)
8
15
 
9
16
 
@@ -48,6 +48,7 @@ interface ReleaseArgs {
48
48
  interface PullRequestArgs {
49
49
  draftPullRequest?: boolean;
50
50
  label?: string;
51
+ skipLabeling?: boolean;
51
52
  signoff?: string;
52
53
  }
53
54
  interface PullRequestStrategyArgs {
@@ -105,6 +105,11 @@ function pullRequestOptions(yargs) {
105
105
  .option('label', {
106
106
  default: 'autorelease: pending',
107
107
  describe: 'comma-separated list of labels to add to from release PR',
108
+ })
109
+ .option('skip-labeling', {
110
+ describe: 'skip application of labels to pull requests',
111
+ type: 'boolean',
112
+ default: false,
108
113
  })
109
114
  .option('fork', {
110
115
  describe: 'should the PR be created from a fork',
@@ -522,6 +527,9 @@ function extractManifestOptions(argv) {
522
527
  labels = [];
523
528
  manifestOptions.labels = labels;
524
529
  }
530
+ if ('skipLabeling' in argv && argv.skipLabeling !== undefined) {
531
+ manifestOptions.skipLabeling = argv.skipLabeling;
532
+ }
525
533
  if ('releaseLabel' in argv && argv.releaseLabel) {
526
534
  manifestOptions.releaseLabels = argv.releaseLabel.split(',');
527
535
  }
@@ -233,6 +233,7 @@ export declare class GitHub {
233
233
  createReleasePullRequest(releasePullRequest: ReleasePullRequest, targetBranch: string, options?: {
234
234
  signoffUser?: string;
235
235
  fork?: boolean;
236
+ skipLabeling?: boolean;
236
237
  }): Promise<PullRequest>;
237
238
  createPullRequest: (pullRequest: PullRequest, targetBranch: string, message: string, updates: Update[], options?: {
238
239
  fork?: boolean | undefined;
@@ -870,13 +870,15 @@ class GitHub {
870
870
  if (options === null || options === void 0 ? void 0 : options.signoffUser) {
871
871
  message = signoff_commit_message_1.signoffCommitMessage(message, options.signoffUser);
872
872
  }
873
+ const pullRequestLabels = (options === null || options === void 0 ? void 0 : options.skipLabeling) ? []
874
+ : releasePullRequest.labels;
873
875
  return await this.createPullRequest({
874
876
  headBranchName: releasePullRequest.headRefName,
875
877
  baseBranchName: targetBranch,
876
878
  number: -1,
877
879
  title: releasePullRequest.title.toString(),
878
880
  body: releasePullRequest.body.toString().slice(0, MAX_ISSUE_BODY_SIZE),
879
- labels: releasePullRequest.labels,
881
+ labels: pullRequestLabels,
880
882
  files: [],
881
883
  }, targetBranch, message, releasePullRequest.updates, {
882
884
  fork: options === null || options === void 0 ? void 0 : options.fork,
@@ -88,6 +88,7 @@ export interface ManifestOptions {
88
88
  signoff?: string;
89
89
  manifestPath?: string;
90
90
  labels?: string[];
91
+ skipLabeling?: boolean;
91
92
  releaseLabels?: string[];
92
93
  snapshotLabels?: string[];
93
94
  draft?: boolean;
@@ -154,6 +155,7 @@ export declare class Manifest {
154
155
  readonly fork: boolean;
155
156
  private signoffUser?;
156
157
  private labels;
158
+ private skipLabeling?;
157
159
  private releaseLabels;
158
160
  private snapshotLabels;
159
161
  private plugins;
@@ -78,6 +78,7 @@ class Manifest {
78
78
  this.releaseLabels =
79
79
  (manifestOptions === null || manifestOptions === void 0 ? void 0 : manifestOptions.releaseLabels) || exports.DEFAULT_RELEASE_LABELS;
80
80
  this.labels = (manifestOptions === null || manifestOptions === void 0 ? void 0 : manifestOptions.labels) || exports.DEFAULT_LABELS;
81
+ this.skipLabeling = (manifestOptions === null || manifestOptions === void 0 ? void 0 : manifestOptions.skipLabeling) || false;
81
82
  this.snapshotLabels =
82
83
  (manifestOptions === null || manifestOptions === void 0 ? void 0 : manifestOptions.snapshotLabels) || exports.DEFAULT_SNAPSHOT_LABELS;
83
84
  this.bootstrapSha = manifestOptions === null || manifestOptions === void 0 ? void 0 : manifestOptions.bootstrapSha;
@@ -467,6 +468,7 @@ class Manifest {
467
468
  const newPullRequest = await this.github.createReleasePullRequest(pullRequest, this.targetBranch, {
468
469
  fork: this.fork,
469
470
  signoffUser: this.signoffUser,
471
+ skipLabeling: this.skipLabeling,
470
472
  });
471
473
  return newPullRequest;
472
474
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.12.0",
3
+ "version": "13.13.0",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",