@backstage/plugin-scaffolder-backend-module-github 0.7.2-next.1 → 0.8.0-next.2

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/actions/github.cjs.js +45 -52
  3. package/dist/actions/github.cjs.js.map +1 -1
  4. package/dist/actions/githubActionsDispatch.cjs.js +15 -29
  5. package/dist/actions/githubActionsDispatch.cjs.js.map +1 -1
  6. package/dist/actions/githubAutolinks.cjs.js +15 -30
  7. package/dist/actions/githubAutolinks.cjs.js.map +1 -1
  8. package/dist/actions/githubBranchProtection.cjs.js +15 -23
  9. package/dist/actions/githubBranchProtection.cjs.js.map +1 -1
  10. package/dist/actions/githubDeployKey.cjs.js +21 -41
  11. package/dist/actions/githubDeployKey.cjs.js.map +1 -1
  12. package/dist/actions/githubEnvironment.cjs.js +47 -89
  13. package/dist/actions/githubEnvironment.cjs.js.map +1 -1
  14. package/dist/actions/githubIssuesLabel.cjs.js +12 -27
  15. package/dist/actions/githubIssuesLabel.cjs.js.map +1 -1
  16. package/dist/actions/githubPagesEnable.cjs.js +15 -34
  17. package/dist/actions/githubPagesEnable.cjs.js.map +1 -1
  18. package/dist/actions/githubPullRequest.cjs.js +66 -126
  19. package/dist/actions/githubPullRequest.cjs.js.map +1 -1
  20. package/dist/actions/githubRepoCreate.cjs.js +35 -42
  21. package/dist/actions/githubRepoCreate.cjs.js.map +1 -1
  22. package/dist/actions/githubRepoPush.cjs.js +23 -30
  23. package/dist/actions/githubRepoPush.cjs.js.map +1 -1
  24. package/dist/actions/githubWebhook.cjs.js +29 -63
  25. package/dist/actions/githubWebhook.cjs.js.map +1 -1
  26. package/dist/actions/inputProperties.cjs.js +145 -281
  27. package/dist/actions/inputProperties.cjs.js.map +1 -1
  28. package/dist/actions/outputProperties.cjs.js +9 -12
  29. package/dist/actions/outputProperties.cjs.js.map +1 -1
  30. package/dist/index.d.ts +210 -211
  31. package/dist/module.cjs.js +4 -9
  32. package/dist/module.cjs.js.map +1 -1
  33. package/package.json +8 -7
@@ -1 +1 @@
1
- {"version":3,"file":"inputProperties.cjs.js","sources":["../../src/actions/inputProperties.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst repoUrl = {\n title: 'Repository Location',\n description:\n 'Accepts the format `github.com?repo=reponame&owner=owner` where `reponame` is the new repository name and `owner` is an organization or username',\n type: 'string',\n};\nconst description = {\n title: 'Repository Description',\n type: 'string',\n};\nconst homepage = {\n title: 'Repository Homepage',\n type: 'string',\n};\nconst access = {\n title: 'Repository Access',\n description:\n 'Sets an admin collaborator on the repository. Can either be a user reference different from `owner` in `repoUrl` or team reference, eg. `org/team-name`',\n type: 'string',\n};\nconst requireCodeOwnerReviews = {\n title: 'Require CODEOWNER Reviews?',\n description:\n 'Require an approved review in PR including files with a designated Code Owner',\n type: 'boolean',\n};\nconst dismissStaleReviews = {\n title: 'Dismiss Stale Reviews',\n description:\n 'New reviewable commits pushed to a matching branch will dismiss pull request review approvals.',\n type: 'boolean',\n};\nconst requiredStatusCheckContexts = {\n title: 'Required Status Check Contexts',\n description:\n 'The list of status checks to require in order to merge into this branch',\n type: 'array',\n items: {\n type: 'string',\n },\n};\nconst requireBranchesToBeUpToDate = {\n title: 'Require Branches To Be Up To Date?',\n description:\n 'Require branches to be up to date before merging. The default value is `true`',\n type: 'boolean',\n default: true,\n};\nconst requiredConversationResolution = {\n title: 'Required Conversation Resolution',\n description:\n 'Requires all conversations on code to be resolved before a pull request can be merged into this branch',\n type: 'boolean',\n};\nconst requireLastPushApproval = {\n title: 'Require last push approval',\n type: 'boolean',\n default: false,\n description:\n 'Whether the most recent push to a PR must be approved by someone other than the person who pushed it. The default value is `false`',\n};\nconst repoVisibility = {\n title: 'Repository Visibility',\n type: 'string',\n enum: ['private', 'public', 'internal'],\n};\nconst deleteBranchOnMerge = {\n title: 'Delete Branch On Merge',\n type: 'boolean',\n default: false,\n description:\n 'Delete the branch after merging the PR. The default value is `false`',\n};\nconst gitAuthorName = {\n title: 'Default Author Name',\n type: 'string',\n default: 'Scaffolder',\n description:\n 'Sets the default author name for the commit. The default value is `Scaffolder`',\n};\nconst gitAuthorEmail = {\n title: 'Default Author Email',\n type: 'string',\n description: `Sets the default author email for the commit.`,\n};\nconst allowMergeCommit = {\n title: 'Allow Merge Commits',\n type: 'boolean',\n default: true,\n description: 'Allow merge commits. The default value is `true`',\n};\nconst allowSquashMerge = {\n title: 'Allow Squash Merges',\n type: 'boolean',\n default: true,\n description: 'Allow squash merges. The default value is `true`',\n};\nconst allowUpdateBranch = {\n title: 'Allow Update Branch',\n type: 'boolean',\n default: false,\n description: 'Allow branch to be updated. The default value is `false`',\n};\nconst squashMergeCommitTitle = {\n title: 'Default squash merge commit title',\n enum: ['PR_TITLE', 'COMMIT_OR_PR_TITLE'],\n type: 'string',\n default: 'COMMIT_OR_PR_TITLE',\n description:\n 'Sets the default value for a squash merge commit title. The default value is `COMMIT_OR_PR_TITLE`',\n};\nconst squashMergeCommitMessage = {\n title: 'Default squash merge commit message',\n enum: ['PR_BODY', 'COMMIT_MESSAGES', 'BLANK'],\n type: 'string',\n default: 'COMMIT_MESSAGES',\n description:\n 'Sets the default value for a squash merge commit message. The default value is `COMMIT_MESSAGES`',\n};\n\nconst allowRebaseMerge = {\n title: 'Allow Rebase Merges',\n type: 'boolean',\n default: true,\n description: 'Allow rebase merges. The default value is `true`',\n};\nconst allowAutoMerge = {\n title: 'Allow Auto Merges',\n type: 'boolean',\n default: false,\n description:\n 'Allow individual PRs to merge automatically when all merge requirements are met. The default value is `false`',\n};\nconst collaborators = {\n title: 'Collaborators',\n description: 'Provide additional users or teams with permissions',\n type: 'array',\n items: {\n type: 'object',\n additionalProperties: false,\n required: ['access'],\n properties: {\n access: {\n type: 'string',\n description: 'The type of access for the user',\n },\n user: {\n type: 'string',\n description:\n 'The name of the user that will be added as a collaborator',\n },\n team: {\n type: 'string',\n description:\n 'The name of the team that will be added as a collaborator',\n },\n },\n oneOf: [{ required: ['user'] }, { required: ['team'] }],\n },\n};\nconst hasProjects = {\n title: 'Enable projects',\n type: 'boolean',\n description:\n 'Enable projects for the repository. The default value is `true` unless the organization has disabled repository projects',\n};\nconst hasWiki = {\n title: 'Enable the wiki',\n type: 'boolean',\n default: true,\n description:\n 'Enable the wiki for the repository. The default value is `true`',\n};\nconst hasIssues = {\n title: 'Enable issues',\n type: 'boolean',\n default: true,\n description: 'Enable issues for the repository. The default value is `true`',\n};\nconst token = {\n title: 'Authentication Token',\n type: 'string',\n description: 'The token to use for authorization to GitHub',\n};\nconst topics = {\n title: 'Topics',\n type: 'array',\n items: {\n type: 'string',\n },\n};\nconst defaultBranch = {\n title: 'Default Branch',\n type: 'string',\n default: 'master',\n description:\n 'Sets the default branch on the repository. The default value is `master`',\n};\nconst protectDefaultBranch = {\n title: 'Protect Default Branch',\n type: 'boolean',\n default: true,\n description:\n 'Protect the default branch after creating the repository. The default value is `true`',\n};\nconst protectEnforceAdmins = {\n title: 'Enforce Admins On Protected Branches',\n type: 'boolean',\n default: true,\n description:\n 'Enforce admins to adhere to default branch protection. The default value is `true`',\n};\n\nconst bypassPullRequestAllowances = {\n title: 'Bypass pull request requirements',\n description:\n 'Allow specific users, teams, or apps to bypass pull request requirements.',\n type: 'object',\n additionalProperties: false,\n properties: {\n apps: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n users: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n teams: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n};\n\nconst gitCommitMessage = {\n title: 'Git Commit Message',\n type: 'string',\n default: 'initial commit',\n description:\n 'Sets the commit message on the repository. The default value is `initial commit`',\n};\nconst sourcePath = {\n title: 'Source Path',\n description:\n 'Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository.',\n type: 'string',\n};\n\nconst requiredApprovingReviewCount = {\n title: 'Required approving review count',\n type: 'number',\n description:\n 'Specify the number of reviewers required to approve pull requests. Use a number between `1` and `6` or `0` to not require reviewers. Defaults to `1`.',\n};\n\nconst restrictions = {\n title: 'Restrict who can push to the protected branch',\n description:\n 'Restrict who can push to the protected branch. User, app, and team restrictions are only available for organization-owned repositories.',\n type: 'object',\n additionalProperties: false,\n properties: {\n apps: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n users: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n teams: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n};\n\nconst requiredCommitSigning = {\n title: 'Require commit signing',\n type: 'boolean',\n description: `Require commit signing so that you must sign commits on this branch.`,\n};\n\nconst requiredLinearHistory = {\n title: 'Require linear history',\n type: 'boolean',\n description: `Prevent merge commits from being pushed to matching branches.`,\n};\n\nconst repoVariables = {\n title: 'Repository Variables',\n description: `Variables attached to the repository`,\n type: 'object',\n};\n\nconst secrets = {\n title: 'Repository Secrets',\n description: `Secrets attached to the repository`,\n type: 'object',\n};\n\nconst oidcCustomization = {\n title: 'Repository OIDC customization template',\n description: `OIDC customization template attached to the repository.`,\n type: 'object',\n additionalProperties: false,\n properties: {\n useDefault: {\n title: 'Use Default',\n type: 'boolean',\n description: `Whether to use the default OIDC template or not.`,\n },\n includeClaimKeys: {\n title: 'Include claim keys',\n type: 'array',\n items: {\n type: 'string',\n },\n description: `Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.`,\n },\n },\n};\n\nconst customProperties = {\n title: 'Custom Repository Properties',\n description:\n 'Custom properties to be added to the repository (note, this only works for organization repositories)',\n type: 'object',\n};\n\nconst subscribe = {\n title: 'Subscribe to repository',\n description: `Subscribe to the repository. The default value is 'false'`,\n type: 'boolean',\n};\n\nexport { access };\nexport { allowMergeCommit };\nexport { allowRebaseMerge };\nexport { allowSquashMerge };\nexport { squashMergeCommitTitle };\nexport { squashMergeCommitMessage };\nexport { allowAutoMerge };\nexport { allowUpdateBranch };\nexport { collaborators };\nexport { defaultBranch };\nexport { deleteBranchOnMerge };\nexport { description };\nexport { gitAuthorEmail };\nexport { gitAuthorName };\nexport { gitCommitMessage };\nexport { homepage };\nexport { protectDefaultBranch };\nexport { protectEnforceAdmins };\nexport { bypassPullRequestAllowances };\nexport { requiredApprovingReviewCount };\nexport { restrictions };\nexport { repoUrl };\nexport { repoVisibility };\nexport { requireCodeOwnerReviews };\nexport { dismissStaleReviews };\nexport { requiredStatusCheckContexts };\nexport { requireBranchesToBeUpToDate };\nexport { requiredConversationResolution };\nexport { requireLastPushApproval };\nexport { hasProjects };\nexport { hasIssues };\nexport { hasWiki };\nexport { sourcePath };\nexport { token };\nexport { topics };\nexport { requiredCommitSigning };\nexport { requiredLinearHistory };\nexport { repoVariables };\nexport { secrets };\nexport { oidcCustomization };\nexport { customProperties };\nexport { subscribe };\n"],"names":[],"mappings":";;AAgBA,MAAM,OAAU,GAAA;AAAA,EACd,KAAO,EAAA,qBAAA;AAAA,EACP,WACE,EAAA,kJAAA;AAAA,EACF,IAAM,EAAA;AACR;AACA,MAAM,WAAc,GAAA;AAAA,EAClB,KAAO,EAAA,wBAAA;AAAA,EACP,IAAM,EAAA;AACR;AACA,MAAM,QAAW,GAAA;AAAA,EACf,KAAO,EAAA,qBAAA;AAAA,EACP,IAAM,EAAA;AACR;AACA,MAAM,MAAS,GAAA;AAAA,EACb,KAAO,EAAA,mBAAA;AAAA,EACP,WACE,EAAA,yJAAA;AAAA,EACF,IAAM,EAAA;AACR;AACA,MAAM,uBAA0B,GAAA;AAAA,EAC9B,KAAO,EAAA,4BAAA;AAAA,EACP,WACE,EAAA,+EAAA;AAAA,EACF,IAAM,EAAA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AA;AAAA,EACtB,UAAY,EAAA;AAAA,IACV,UAAY,EAAA;AAAA,MACV,KAAO,EAAA,aAAA;AAAA,MACP,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,CAAA,gDAAA;AAAA,KACf;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,KAAO,EAAA,oBAAA;AAAA,MACP,IAAM,EAAA,OAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,IAAM,EAAA;AAAA,OACR;AAAA,MACA,WAAa,EAAA,CAAA,iGAAA;AAAA;AACf;AAEJ;AAEA,MAAM,gBAAmB,GAAA;AAAA,EACvB,KAAO,EAAA,8BAAA;AAAA,EACP,WACE,EAAA,uGAAA;AAAA,EACF,IAAM,EAAA;AACR;AAEA,MAAM,SAAY,GAAA;AAAA,EAChB,KAAO,EAAA,yBAAA;AAAA,EACP,WAAa,EAAA,CAAA,yDAAA,CAAA;AAAA,EACb,IAAM,EAAA;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"inputProperties.cjs.js","sources":["../../src/actions/inputProperties.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { z as zod } from 'zod';\n\nconst repoUrl = (z: typeof zod) =>\n z.string({\n description:\n 'Accepts the format `github.com?repo=reponame&owner=owner` where `reponame` is the new repository name and `owner` is an organization or username',\n });\n\nconst description = (z: typeof zod) =>\n z\n .string({\n description: 'Repository Description',\n })\n .optional();\n\nconst homepage = (z: typeof zod) =>\n z\n .string({\n description: 'Repository Homepage',\n })\n .optional();\n\nconst access = (z: typeof zod) =>\n z\n .string({\n description:\n 'Sets an admin collaborator on the repository. Can either be a user reference different from `owner` in `repoUrl` or team reference, eg. `org/team-name`',\n })\n .optional();\n\nconst requireCodeOwnerReviews = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Require an approved review in PR including files with a designated Code Owner',\n })\n .optional();\n\nconst dismissStaleReviews = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'New reviewable commits pushed to a matching branch will dismiss pull request review approvals.',\n })\n .optional();\n\nconst requiredStatusCheckContexts = (z: typeof zod) =>\n z\n .array(z.string(), {\n description:\n 'The list of status checks to require in order to merge into this branch',\n })\n .optional();\n\nconst requireBranchesToBeUpToDate = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Require branches to be up to date before merging. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst requiredConversationResolution = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Requires all conversations on code to be resolved before a pull request can be merged into this branch',\n })\n .optional();\n\nconst requireLastPushApproval = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Whether the most recent push to a PR must be approved by someone other than the person who pushed it. The default value is `false`',\n })\n .default(false)\n .optional();\n\nconst repoVisibility = (z: typeof zod) =>\n z\n .enum(['private', 'public', 'internal'], {\n description: 'Repository Visibility',\n })\n .optional();\n\nconst deleteBranchOnMerge = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Delete the branch after merging the PR. The default value is `false`',\n })\n .default(false)\n .optional();\n\nconst gitAuthorName = (z: typeof zod) =>\n z\n .string({\n description:\n 'Sets the default author name for the commit. The default value is `Scaffolder`',\n })\n .default('Scaffolder')\n .optional();\n\nconst gitAuthorEmail = (z: typeof zod) =>\n z\n .string({\n description: `Sets the default author email for the commit.`,\n })\n .optional();\n\nconst allowMergeCommit = (z: typeof zod) =>\n z\n .boolean({\n description: 'Allow merge commits. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst allowSquashMerge = (z: typeof zod) =>\n z\n .boolean({\n description: 'Allow squash merges. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst allowUpdateBranch = (z: typeof zod) =>\n z\n .boolean({\n description: 'Allow branch to be updated. The default value is `false`',\n })\n .default(false)\n .optional();\n\nconst squashMergeCommitTitle = (z: typeof zod) =>\n z\n .enum(['PR_TITLE', 'COMMIT_OR_PR_TITLE'], {\n description:\n 'Sets the default value for a squash merge commit title. The default value is `COMMIT_OR_PR_TITLE`',\n })\n .default('COMMIT_OR_PR_TITLE')\n .optional();\n\nconst squashMergeCommitMessage = (z: typeof zod) =>\n z\n .enum(['PR_BODY', 'COMMIT_MESSAGES', 'BLANK'], {\n description:\n 'Sets the default value for a squash merge commit message. The default value is `COMMIT_MESSAGES`',\n })\n .default('COMMIT_MESSAGES')\n .optional();\n\nconst allowRebaseMerge = (z: typeof zod) =>\n z\n .boolean({\n description: 'Allow rebase merges. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst allowAutoMerge = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Allow individual PRs to merge automatically when all merge requirements are met. The default value is `false`',\n })\n .default(false)\n .optional();\n\nconst collaborators = (z: typeof zod) =>\n z\n .array(\n z.union([\n z.object({\n access: z.string({\n description: 'The type of access for the user',\n }),\n user: z.string({\n description:\n 'The name of the user that will be added as a collaborator',\n }),\n }),\n z.object({\n access: z.string({\n description: 'The type of access for the team',\n }),\n team: z.string({\n description:\n 'The name of the team that will be added as a collaborator',\n }),\n }),\n ]),\n {\n description: 'Provide additional users or teams with permissions',\n },\n )\n .optional();\n\nconst hasProjects = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Enable projects for the repository. The default value is `true` unless the organization has disabled repository projects',\n })\n .optional();\n\nconst hasWiki = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Enable the wiki for the repository. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst hasIssues = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Enable issues for the repository. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst token = (z: typeof zod) =>\n z\n .string({\n description: 'The token to use for authorization to GitHub',\n })\n .optional();\n\nconst topics = (z: typeof zod) =>\n z\n .array(z.string(), {\n description: 'Adds topics to the repository',\n })\n .optional();\n\nconst defaultBranch = (z: typeof zod) =>\n z\n .string({\n description: `Sets the default branch on the repository. The default value is 'master'`,\n })\n .default('master')\n .optional();\n\nconst protectDefaultBranch = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Protect the default branch after creating the repository. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst protectEnforceAdmins = (z: typeof zod) =>\n z\n .boolean({\n description:\n 'Enforce admins to adhere to default branch protection. The default value is `true`',\n })\n .default(true)\n .optional();\n\nconst bypassPullRequestAllowances = (z: typeof zod) =>\n z\n .object(\n {\n apps: z.array(z.string()).optional(),\n users: z.array(z.string()).optional(),\n teams: z.array(z.string()).optional(),\n },\n {\n description:\n 'Allow specific users, teams, or apps to bypass pull request requirements.',\n },\n )\n .optional();\n\nconst gitCommitMessage = (z: typeof zod) =>\n z\n .string({\n description:\n 'Sets the commit message on the repository. The default value is `initial commit`',\n })\n .default('initial commit')\n .optional();\n\nconst sourcePath = (z: typeof zod) =>\n z\n .string({\n description:\n 'Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository.',\n })\n .optional();\n\nconst requiredApprovingReviewCount = (z: typeof zod) =>\n z\n .number({\n description:\n 'Specify the number of reviewers required to approve pull requests. Use a number between `1` and `6` or `0` to not require reviewers. Defaults to `1`.',\n })\n .optional();\n\nconst restrictions = (z: typeof zod) =>\n z\n .object(\n {\n apps: z.array(z.string()).optional(),\n users: z.array(z.string()),\n teams: z.array(z.string()),\n },\n {\n description:\n 'Restrict who can push to the protected branch. User, app, and team restrictions are only available for organization-owned repositories.',\n },\n )\n .optional();\n\nconst requiredCommitSigning = (z: typeof zod) =>\n z\n .boolean({\n description: `Require commit signing so that you must sign commits on this branch.`,\n })\n .optional();\n\nconst requiredLinearHistory = (z: typeof zod) =>\n z\n .boolean({\n description: `Prevent merge commits from being pushed to matching branches.`,\n })\n .optional();\n\nconst repoVariables = (z: typeof zod) =>\n z\n .record(z.string(), {\n description: 'Variables attached to the repository',\n })\n .optional();\n\nconst secrets = (z: typeof zod) =>\n z\n .record(z.string(), {\n description: 'Secrets attached to the repository',\n })\n .optional();\n\nconst oidcCustomization = (z: typeof zod) =>\n z\n .object(\n {\n useDefault: z\n .boolean({\n description: `Whether to use the default template or not. If true, includeClaimKeys must not be set.`,\n })\n .default(true),\n includeClaimKeys: z\n .array(z.string(), {\n description: `Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.`,\n })\n .optional(),\n },\n {\n description: `OIDC customization template attached to the repository.`,\n },\n )\n .optional();\n\nconst customProperties = (z: typeof zod) =>\n z\n .record(z.string(), {\n description:\n 'Custom properties to be added to the repository (note, this only works for organization repositories)',\n })\n .optional();\n\nconst subscribe = (z: typeof zod) =>\n z\n .boolean({\n description: `Subscribe to the repository. The default value is 'false'`,\n })\n .optional();\n\nconst branch = (z: typeof zod) =>\n z\n .string({\n description: `The branch to protect. Defaults to the repository's default branch`,\n })\n .optional();\n\nexport {\n repoUrl,\n description,\n homepage,\n access,\n requireCodeOwnerReviews,\n dismissStaleReviews,\n requiredStatusCheckContexts,\n requireBranchesToBeUpToDate,\n requiredConversationResolution,\n requireLastPushApproval,\n repoVisibility,\n deleteBranchOnMerge,\n gitAuthorName,\n gitAuthorEmail,\n allowMergeCommit,\n allowSquashMerge,\n allowUpdateBranch,\n squashMergeCommitTitle,\n squashMergeCommitMessage,\n allowRebaseMerge,\n allowAutoMerge,\n collaborators,\n hasProjects,\n hasWiki,\n hasIssues,\n token,\n topics,\n defaultBranch,\n gitCommitMessage,\n sourcePath,\n repoVariables,\n secrets,\n oidcCustomization,\n customProperties,\n subscribe,\n requiredApprovingReviewCount,\n restrictions,\n requiredCommitSigning,\n requiredLinearHistory,\n protectDefaultBranch,\n protectEnforceAdmins,\n bypassPullRequestAllowances,\n branch,\n};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,WAAa,EAAA;AACf,CAAC,EACA,QAAS;AAER,MAAA,iBAAA,GAAoB,CAAC,CAAA,KACzB,CACG,CAAA,MAAA;AAAA,EACC;AAAA,IACE,UAAA,EAAY,EACT,OAAQ,CAAA;AAAA,MACP,WAAa,EAAA,CAAA,sFAAA;AAAA,KACd,CACA,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAA,IACf,gBAAkB,EAAA,CAAA,CACf,KAAM,CAAA,CAAA,CAAE,QAAU,EAAA;AAAA,MACjB,WAAa,EAAA,CAAA,iGAAA;AAAA,KACd,EACA,QAAS;AAAA,GACd;AAAA,EACA;AAAA,IACE,WAAa,EAAA,CAAA,uDAAA;AAAA;AAEjB,CAAA,CACC,QAAS;AAEd,MAAM,mBAAmB,CAAC,CAAA,KACxB,EACG,MAAO,CAAA,CAAA,CAAE,QAAU,EAAA;AAAA,EAClB,WACE,EAAA;AACJ,CAAC,EACA,QAAS;AAEd,MAAM,SAAY,GAAA,CAAC,CACjB,KAAA,CAAA,CACG,OAAQ,CAAA;AAAA,EACP,WAAa,EAAA,CAAA,yDAAA;AACf,CAAC,EACA,QAAS;AAEd,MAAM,MAAS,GAAA,CAAC,CACd,KAAA,CAAA,CACG,MAAO,CAAA;AAAA,EACN,WAAa,EAAA,CAAA,kEAAA;AACf,CAAC,EACA,QAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,14 @@
1
1
  'use strict';
2
2
 
3
- const remoteUrl = {
4
- title: "A URL to the repository with the provider",
5
- type: "string"
6
- };
7
- const repoContentsUrl = {
8
- title: "A URL to the root of the repository",
9
- type: "string"
10
- };
11
- const commitHash = {
12
- title: "The git commit hash of the initial commit",
13
- type: "string"
14
- };
3
+ const remoteUrl = (z) => z.string({
4
+ description: "A URL to the repository with the provider"
5
+ });
6
+ const repoContentsUrl = (z) => z.string({
7
+ description: "A URL to the root of the repository"
8
+ });
9
+ const commitHash = (z) => z.string({
10
+ description: "The git commit hash of the initial commit"
11
+ });
15
12
 
16
13
  exports.commitHash = commitHash;
17
14
  exports.remoteUrl = remoteUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"outputProperties.cjs.js","sources":["../../src/actions/outputProperties.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst remoteUrl = {\n title: 'A URL to the repository with the provider',\n type: 'string',\n};\nconst repoContentsUrl = {\n title: 'A URL to the root of the repository',\n type: 'string',\n};\n\nconst commitHash = {\n title: 'The git commit hash of the initial commit',\n type: 'string',\n};\n\nexport { remoteUrl };\nexport { repoContentsUrl };\nexport { commitHash };\n"],"names":[],"mappings":";;AAgBA,MAAM,SAAY,GAAA;AAAA,EAChB,KAAO,EAAA,2CAAA;AAAA,EACP,IAAM,EAAA;AACR;AACA,MAAM,eAAkB,GAAA;AAAA,EACtB,KAAO,EAAA,qCAAA;AAAA,EACP,IAAM,EAAA;AACR;AAEA,MAAM,UAAa,GAAA;AAAA,EACjB,KAAO,EAAA,2CAAA;AAAA,EACP,IAAM,EAAA;AACR;;;;;;"}
1
+ {"version":3,"file":"outputProperties.cjs.js","sources":["../../src/actions/outputProperties.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { z as zod } from 'zod';\n\nconst remoteUrl = (z: typeof zod) =>\n z.string({\n description: 'A URL to the repository with the provider',\n });\n\nconst repoContentsUrl = (z: typeof zod) =>\n z.string({\n description: 'A URL to the root of the repository',\n });\n\nconst commitHash = (z: typeof zod) =>\n z.string({\n description: 'The git commit hash of the initial commit',\n });\n\nexport { remoteUrl };\nexport { repoContentsUrl };\nexport { commitHash };\n"],"names":[],"mappings":";;AAkBA,MAAM,SAAY,GAAA,CAAC,CACjB,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,EACP,WAAa,EAAA;AACf,CAAC;AAEH,MAAM,eAAkB,GAAA,CAAC,CACvB,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,EACP,WAAa,EAAA;AACf,CAAC;AAEH,MAAM,UAAa,GAAA,CAAC,CAClB,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,EACP,WAAa,EAAA;AACf,CAAC;;;;;;"}