mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-12 13:41:39 +02:00
committed by
GitHub
parent
922ac8b6db
commit
51a2017af2
52
dist/index.js
vendored
52
dist/index.js
vendored
@@ -25,7 +25,7 @@ function getGitHubInput () {
|
|||||||
defaultBranch: core.getInput('default-branch') || undefined,
|
defaultBranch: core.getInput('default-branch') || undefined,
|
||||||
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||||
graphqlUrl: core.getInput('github-graphql-url') || GITHUB_GRAPHQL_URL,
|
graphqlUrl: (core.getInput('github-graphql-url') || '').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_URL,
|
||||||
token: core.getInput('token', { required: true })
|
token: core.getInput('token', { required: true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -128,6 +128,27 @@ async function manifestInstance (github) {
|
|||||||
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
const pullRequestTitlePattern = core.getInput('pull-request-title-pattern') || undefined
|
||||||
const draft = core.getBooleanInput('draft')
|
const draft = core.getBooleanInput('draft')
|
||||||
const draftPullRequest = core.getBooleanInput('draft-pull-request')
|
const draftPullRequest = core.getBooleanInput('draft-pull-request')
|
||||||
|
const changelogType = core.getInput('changelog-notes-type') || undefined
|
||||||
|
const versioning = core.getInput('versioning-strategy') || undefined
|
||||||
|
const releaseAs = core.getInput('release-as') || undefined
|
||||||
|
const skipGithubRelease = core.getBooleanInput('skip-github-release')
|
||||||
|
const prerelease = core.getBooleanInput('prerelease')
|
||||||
|
const component = core.getInput('component') || undefined
|
||||||
|
const includeVInTag = core.getBooleanInput('include-v-in-tag')
|
||||||
|
const tagSeparator = core.getInput('tag-separator') || undefined
|
||||||
|
const snapshotLabels = core.getMultilineInput('snapshot-labels') || undefined
|
||||||
|
const bootstrapSha = core.getInput('bootstrap-sha') || undefined
|
||||||
|
const lastReleaseSha = core.getInput('last-release-sha') || undefined
|
||||||
|
const alwaysLinkLocal = core.getBooleanInput('always-link-local')
|
||||||
|
const separatePullRequests = core.getBooleanInput('separate-pull-requests')
|
||||||
|
const plugins = core.getMultilineInput('plugins') || undefined
|
||||||
|
const labels = core.getMultilineInput('labels') || undefined
|
||||||
|
const releaseLabels = core.getMultilineInput('release-labels') || undefined
|
||||||
|
const skipLabeling = core.getBooleanInput('skip-labeling')
|
||||||
|
const sequentialCalls = core.getBooleanInput('sequential-calls')
|
||||||
|
const groupPullRequestTitlePattern = core.getInput('group-pull-request-title-pattern') || undefined
|
||||||
|
const releaseSearchDepth = core.getInput('release-search-depth') || undefined
|
||||||
|
const commitSearchDepth = core.getInput('commit-search-depth') || undefined
|
||||||
return await Manifest.fromConfig(
|
return await Manifest.fromConfig(
|
||||||
github,
|
github,
|
||||||
github.repository.defaultBranch,
|
github.repository.defaultBranch,
|
||||||
@@ -143,12 +164,37 @@ async function manifestInstance (github) {
|
|||||||
extraFiles,
|
extraFiles,
|
||||||
includeComponentInTag: monorepoTags,
|
includeComponentInTag: monorepoTags,
|
||||||
pullRequestTitlePattern,
|
pullRequestTitlePattern,
|
||||||
draftPullRequest
|
draftPullRequest,
|
||||||
|
versioning,
|
||||||
|
releaseAs,
|
||||||
|
skipGithubRelease,
|
||||||
|
draft,
|
||||||
|
prerelease,
|
||||||
|
component,
|
||||||
|
includeVInTag,
|
||||||
|
tagSeparator,
|
||||||
|
changelogType,
|
||||||
|
snapshotLabels
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
draft,
|
draft,
|
||||||
signoff,
|
signoff,
|
||||||
fork
|
fork,
|
||||||
|
draftPullRequest,
|
||||||
|
bootstrapSha,
|
||||||
|
lastReleaseSha,
|
||||||
|
alwaysLinkLocal,
|
||||||
|
separatePullRequests,
|
||||||
|
plugins,
|
||||||
|
labels,
|
||||||
|
releaseLabels,
|
||||||
|
snapshotLabels,
|
||||||
|
skipLabeling,
|
||||||
|
sequentialCalls,
|
||||||
|
prerelease,
|
||||||
|
groupPullRequestTitlePattern,
|
||||||
|
releaseSearchDepth,
|
||||||
|
commitSearchDepth
|
||||||
},
|
},
|
||||||
path
|
path
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user