feat: add homepage to github:publish options
Signed-off-by: Leon van Ginneken <leon.van.ginneken@alliander.com>
This commit is contained in:
@@ -97,6 +97,7 @@ export async function createGithubRepoWithCollaboratorsAndTopics(
|
||||
owner: string,
|
||||
repoVisibility: 'private' | 'internal' | 'public',
|
||||
description: string | undefined,
|
||||
homepage: string | undefined,
|
||||
deleteBranchOnMerge: boolean,
|
||||
allowMergeCommit: boolean,
|
||||
allowSquashMerge: boolean,
|
||||
@@ -138,6 +139,7 @@ export async function createGithubRepoWithCollaboratorsAndTopics(
|
||||
allow_merge_commit: allowMergeCommit,
|
||||
allow_squash_merge: allowSquashMerge,
|
||||
allow_rebase_merge: allowRebaseMerge,
|
||||
homepage: homepage,
|
||||
})
|
||||
: client.rest.repos.createForAuthenticatedUser({
|
||||
name: repo,
|
||||
@@ -147,6 +149,7 @@ export async function createGithubRepoWithCollaboratorsAndTopics(
|
||||
allow_merge_commit: allowMergeCommit,
|
||||
allow_squash_merge: allowSquashMerge,
|
||||
allow_rebase_merge: allowRebaseMerge,
|
||||
homepage: homepage,
|
||||
});
|
||||
|
||||
let newRepo;
|
||||
|
||||
@@ -23,6 +23,10 @@ const description = {
|
||||
title: 'Repository Description',
|
||||
type: 'string',
|
||||
};
|
||||
const homepage = {
|
||||
title: 'Repository Homepage',
|
||||
type: 'string',
|
||||
};
|
||||
const access = {
|
||||
title: 'Repository Access',
|
||||
description: `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'`,
|
||||
@@ -156,6 +160,7 @@ export { description };
|
||||
export { gitAuthorEmail };
|
||||
export { gitAuthorName };
|
||||
export { gitCommitMessage };
|
||||
export { homepage };
|
||||
export { protectDefaultBranch };
|
||||
export { protectEnforceAdmins };
|
||||
export { repoUrl };
|
||||
|
||||
@@ -45,6 +45,7 @@ export function createPublishGithubAction(options: {
|
||||
return createTemplateAction<{
|
||||
repoUrl: string;
|
||||
description?: string;
|
||||
homepage?: string;
|
||||
access?: string;
|
||||
defaultBranch?: string;
|
||||
protectDefaultBranch?: boolean;
|
||||
@@ -88,6 +89,7 @@ export function createPublishGithubAction(options: {
|
||||
properties: {
|
||||
repoUrl: inputProps.repoUrl,
|
||||
description: inputProps.description,
|
||||
homepage: inputProps.homepage,
|
||||
access: inputProps.access,
|
||||
requireCodeOwnerReviews: inputProps.requireCodeOwnerReviews,
|
||||
requiredStatusCheckContexts: inputProps.requiredStatusCheckContexts,
|
||||
@@ -120,6 +122,7 @@ export function createPublishGithubAction(options: {
|
||||
const {
|
||||
repoUrl,
|
||||
description,
|
||||
homepage,
|
||||
access,
|
||||
requireCodeOwnerReviews = false,
|
||||
requiredStatusCheckContexts = [],
|
||||
@@ -159,6 +162,7 @@ export function createPublishGithubAction(options: {
|
||||
owner,
|
||||
repoVisibility,
|
||||
description,
|
||||
homepage,
|
||||
deleteBranchOnMerge,
|
||||
allowMergeCommit,
|
||||
allowSquashMerge,
|
||||
|
||||
Reference in New Issue
Block a user