@backstage/plugin-scaffolder-backend 1.9.1-next.0 → 1.10.0-next.1

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
@@ -1,5 +1,29 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
+ ## 1.10.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 04a2048fb8: Allow custom repository roles to be configured on github repos
8
+ - a69664faee: Add Github repository support for squash merge commit title and message options
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+ - @backstage/backend-plugin-api@0.2.1-next.0
14
+ - @backstage/backend-common@0.18.0-next.0
15
+ - @backstage/config@1.0.6-next.0
16
+ - @backstage/plugin-catalog-backend@1.7.0-next.1
17
+ - @backstage/plugin-catalog-node@1.3.1-next.1
18
+ - @backstage/backend-tasks@0.4.1-next.0
19
+ - @backstage/catalog-client@1.3.0-next.1
20
+ - @backstage/catalog-model@1.1.5-next.1
21
+ - @backstage/errors@1.1.4
22
+ - @backstage/integration@1.4.2-next.0
23
+ - @backstage/types@1.0.2
24
+ - @backstage/plugin-auth-node@0.2.9-next.0
25
+ - @backstage/plugin-scaffolder-common@1.2.4-next.1
26
+
3
27
  ## 1.9.1-next.0
4
28
 
5
29
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
- "version": "1.9.1-next.0",
3
+ "version": "1.10.0-next.1",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -289,6 +289,8 @@ gitAuthorName?: string | undefined;
289
289
  gitAuthorEmail?: string | undefined;
290
290
  allowRebaseMerge?: boolean | undefined;
291
291
  allowSquashMerge?: boolean | undefined;
292
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
293
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
292
294
  allowMergeCommit?: boolean | undefined;
293
295
  allowAutoMerge?: boolean | undefined;
294
296
  requireCodeOwnerReviews?: boolean | undefined;
@@ -303,10 +305,10 @@ requiredConversationResolution?: boolean | undefined;
303
305
  repoVisibility?: "internal" | "private" | "public" | undefined;
304
306
  collaborators?: ({
305
307
  user: string;
306
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
308
+ access: string;
307
309
  } | {
308
310
  team: string;
309
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
311
+ access: string;
310
312
  } | {
311
313
  /** @deprecated This field is deprecated in favor of team */
312
314
  username: string;
@@ -505,6 +507,8 @@ gitAuthorName?: string | undefined;
505
507
  gitAuthorEmail?: string | undefined;
506
508
  allowRebaseMerge?: boolean | undefined;
507
509
  allowSquashMerge?: boolean | undefined;
510
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
511
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
508
512
  allowMergeCommit?: boolean | undefined;
509
513
  allowAutoMerge?: boolean | undefined;
510
514
  sourcePath?: string | undefined;
@@ -521,10 +525,10 @@ requiredConversationResolution?: boolean | undefined;
521
525
  repoVisibility?: "internal" | "private" | "public" | undefined;
522
526
  collaborators?: ({
523
527
  user: string;
524
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
528
+ access: string;
525
529
  } | {
526
530
  team: string;
527
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
531
+ access: string;
528
532
  } | {
529
533
  /** @deprecated This field is deprecated in favor of team */
530
534
  username: string;
@@ -289,6 +289,8 @@ gitAuthorName?: string | undefined;
289
289
  gitAuthorEmail?: string | undefined;
290
290
  allowRebaseMerge?: boolean | undefined;
291
291
  allowSquashMerge?: boolean | undefined;
292
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
293
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
292
294
  allowMergeCommit?: boolean | undefined;
293
295
  allowAutoMerge?: boolean | undefined;
294
296
  requireCodeOwnerReviews?: boolean | undefined;
@@ -303,10 +305,10 @@ requiredConversationResolution?: boolean | undefined;
303
305
  repoVisibility?: "internal" | "private" | "public" | undefined;
304
306
  collaborators?: ({
305
307
  user: string;
306
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
308
+ access: string;
307
309
  } | {
308
310
  team: string;
309
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
311
+ access: string;
310
312
  } | {
311
313
  /** @deprecated This field is deprecated in favor of team */
312
314
  username: string;
@@ -505,6 +507,8 @@ gitAuthorName?: string | undefined;
505
507
  gitAuthorEmail?: string | undefined;
506
508
  allowRebaseMerge?: boolean | undefined;
507
509
  allowSquashMerge?: boolean | undefined;
510
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
511
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
508
512
  allowMergeCommit?: boolean | undefined;
509
513
  allowAutoMerge?: boolean | undefined;
510
514
  sourcePath?: string | undefined;
@@ -521,10 +525,10 @@ requiredConversationResolution?: boolean | undefined;
521
525
  repoVisibility?: "internal" | "private" | "public" | undefined;
522
526
  collaborators?: ({
523
527
  user: string;
524
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
528
+ access: string;
525
529
  } | {
526
530
  team: string;
527
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
531
+ access: string;
528
532
  } | {
529
533
  /** @deprecated This field is deprecated in favor of team */
530
534
  username: string;
package/dist/index.cjs.js CHANGED
@@ -1090,7 +1090,7 @@ async function getOctokitOptions(options) {
1090
1090
  previews: ["nebula-preview"]
1091
1091
  };
1092
1092
  }
1093
- async function createGithubRepoWithCollaboratorsAndTopics(client, repo, owner, repoVisibility, description, homepage, deleteBranchOnMerge, allowMergeCommit, allowSquashMerge, allowRebaseMerge, allowAutoMerge, access, collaborators, hasProjects, hasWiki, hasIssues, topics, logger) {
1093
+ async function createGithubRepoWithCollaboratorsAndTopics(client, repo, owner, repoVisibility, description, homepage, deleteBranchOnMerge, allowMergeCommit, allowSquashMerge, squashMergeCommitTitle, squashMergeCommitMessage, allowRebaseMerge, allowAutoMerge, access, collaborators, hasProjects, hasWiki, hasIssues, topics, logger) {
1094
1094
  const user = await client.rest.users.getByUsername({
1095
1095
  username: owner
1096
1096
  });
@@ -1103,6 +1103,8 @@ async function createGithubRepoWithCollaboratorsAndTopics(client, repo, owner, r
1103
1103
  delete_branch_on_merge: deleteBranchOnMerge,
1104
1104
  allow_merge_commit: allowMergeCommit,
1105
1105
  allow_squash_merge: allowSquashMerge,
1106
+ squash_merge_commit_title: squashMergeCommitTitle,
1107
+ squash_merge_commit_message: squashMergeCommitMessage,
1106
1108
  allow_rebase_merge: allowRebaseMerge,
1107
1109
  allow_auto_merge: allowAutoMerge,
1108
1110
  homepage,
@@ -1116,6 +1118,8 @@ async function createGithubRepoWithCollaboratorsAndTopics(client, repo, owner, r
1116
1118
  delete_branch_on_merge: deleteBranchOnMerge,
1117
1119
  allow_merge_commit: allowMergeCommit,
1118
1120
  allow_squash_merge: allowSquashMerge,
1121
+ squash_merge_commit_title: squashMergeCommitTitle,
1122
+ squash_merge_commit_message: squashMergeCommitMessage,
1119
1123
  allow_rebase_merge: allowRebaseMerge,
1120
1124
  allow_auto_merge: allowAutoMerge,
1121
1125
  homepage,
@@ -1463,6 +1467,16 @@ const allowSquashMerge = {
1463
1467
  type: "boolean",
1464
1468
  description: `Allow squash merges. The default value is 'true'`
1465
1469
  };
1470
+ const squashMergeCommitTitle = {
1471
+ title: "Default squash merge commit title",
1472
+ enum: ["PR_TITLE", "COMMIT_OR_PR_TITLE"],
1473
+ description: `Sets the default value for a squash merge commit title. The default value is 'COMMIT_OR_PR_TITLE'`
1474
+ };
1475
+ const squashMergeCommitMessage = {
1476
+ title: "Default squash merge commit message",
1477
+ enum: ["PR_BODY", "COMMIT_MESSAGES", "BLANK"],
1478
+ description: `Sets the default value for a squash merge commit message. The default value is 'COMMIT_MESSAGES'`
1479
+ };
1466
1480
  const allowRebaseMerge = {
1467
1481
  title: "Allow Rebase Merges",
1468
1482
  type: "boolean",
@@ -1484,8 +1498,7 @@ const collaborators = {
1484
1498
  properties: {
1485
1499
  access: {
1486
1500
  type: "string",
1487
- description: "The type of access for the user",
1488
- enum: ["push", "pull", "admin", "maintain", "triage"]
1501
+ description: "The type of access for the user"
1489
1502
  },
1490
1503
  user: {
1491
1504
  type: "string",
@@ -1610,6 +1623,8 @@ function createGithubRepoCreateAction(options) {
1610
1623
  deleteBranchOnMerge: deleteBranchOnMerge,
1611
1624
  allowMergeCommit: allowMergeCommit,
1612
1625
  allowSquashMerge: allowSquashMerge,
1626
+ squashMergeCommitTitle: squashMergeCommitTitle,
1627
+ squashMergeCommitMessage: squashMergeCommitMessage,
1613
1628
  allowRebaseMerge: allowRebaseMerge,
1614
1629
  allowAutoMerge: allowAutoMerge,
1615
1630
  collaborators: collaborators,
@@ -1638,6 +1653,8 @@ function createGithubRepoCreateAction(options) {
1638
1653
  deleteBranchOnMerge = false,
1639
1654
  allowMergeCommit = true,
1640
1655
  allowSquashMerge = true,
1656
+ squashMergeCommitTitle = "COMMIT_OR_PR_TITLE",
1657
+ squashMergeCommitMessage = "COMMIT_MESSAGES",
1641
1658
  allowRebaseMerge = true,
1642
1659
  allowAutoMerge = false,
1643
1660
  collaborators,
@@ -1668,6 +1685,8 @@ function createGithubRepoCreateAction(options) {
1668
1685
  deleteBranchOnMerge,
1669
1686
  allowMergeCommit,
1670
1687
  allowSquashMerge,
1688
+ squashMergeCommitTitle,
1689
+ squashMergeCommitMessage,
1671
1690
  allowRebaseMerge,
1672
1691
  allowAutoMerge,
1673
1692
  access,
@@ -2998,6 +3017,8 @@ function createPublishGithubAction(options) {
2998
3017
  gitAuthorEmail: gitAuthorEmail,
2999
3018
  allowMergeCommit: allowMergeCommit,
3000
3019
  allowSquashMerge: allowSquashMerge,
3020
+ squashMergeCommitTitle: squashMergeCommitTitle,
3021
+ squashMergeCommitMessage: squashMergeCommitMessage,
3001
3022
  allowRebaseMerge: allowRebaseMerge,
3002
3023
  allowAutoMerge: allowAutoMerge,
3003
3024
  sourcePath: sourcePath,
@@ -3039,6 +3060,8 @@ function createPublishGithubAction(options) {
3039
3060
  gitAuthorEmail,
3040
3061
  allowMergeCommit = true,
3041
3062
  allowSquashMerge = true,
3063
+ squashMergeCommitTitle = "COMMIT_OR_PR_TITLE",
3064
+ squashMergeCommitMessage = "COMMIT_MESSAGES",
3042
3065
  allowRebaseMerge = true,
3043
3066
  allowAutoMerge = false,
3044
3067
  collaborators,
@@ -3069,6 +3092,8 @@ function createPublishGithubAction(options) {
3069
3092
  deleteBranchOnMerge,
3070
3093
  allowMergeCommit,
3071
3094
  allowSquashMerge,
3095
+ squashMergeCommitTitle,
3096
+ squashMergeCommitMessage,
3072
3097
  allowRebaseMerge,
3073
3098
  allowAutoMerge,
3074
3099
  access,