mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 00:31:35 +02:00
feat(input): add github GraphQL URL configuration for input (#385)
This commit is contained in:
@@ -63,6 +63,7 @@ Automate releases with Conventional Commit Messages.
|
|||||||
| `github-api-url` | configure github API URL. Default `https://api.github.com` |
|
| `github-api-url` | configure github API URL. Default `https://api.github.com` |
|
||||||
| `--signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line at the end of the commit log message using the user and email provided. (format "Name \<email@example.com\>") |
|
| `--signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line at the end of the commit log message using the user and email provided. (format "Name \<email@example.com\>") |
|
||||||
| `repo-url` | configure github repository URL. Default `process.env.GITHUB_REPOSITORY` |
|
| `repo-url` | configure github repository URL. Default `process.env.GITHUB_REPOSITORY` |
|
||||||
|
| `github-graphql-url` | configure github GraphQL URL. Default `https://api.github.com` |
|
||||||
|
|
||||||
| output | description |
|
| output | description |
|
||||||
|:---:|---|
|
|:---:|---|
|
||||||
|
|||||||
@@ -76,6 +76,10 @@ inputs:
|
|||||||
description: 'configure github API URL. Default `https://api.github.com`'
|
description: 'configure github API URL. Default `https://api.github.com`'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
github-graphql-url:
|
||||||
|
description: 'configure github GraphQL URL. Default `https://api.github.com`'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
repo-url:
|
repo-url:
|
||||||
description: 'configure github repository URL. Default `process.env.GITHUB_REPOSITORY`'
|
description: 'configure github repository URL. Default `process.env.GITHUB_REPOSITORY`'
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
8
index.js
8
index.js
@@ -8,6 +8,7 @@ const RELEASE_LABEL = 'autorelease: pending'
|
|||||||
const GITHUB_RELEASE_COMMAND = 'github-release'
|
const GITHUB_RELEASE_COMMAND = 'github-release'
|
||||||
const GITHUB_RELEASE_PR_COMMAND = 'release-pr'
|
const GITHUB_RELEASE_PR_COMMAND = 'release-pr'
|
||||||
const GITHUB_API_URL = 'https://api.github.com'
|
const GITHUB_API_URL = 'https://api.github.com'
|
||||||
|
const GITHUB_GRAPHQL_URL = 'https://api.github.com'
|
||||||
|
|
||||||
const signoff = core.getInput('signoff') || undefined
|
const signoff = core.getInput('signoff') || undefined
|
||||||
|
|
||||||
@@ -26,6 +27,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,
|
||||||
token: core.getInput('token', { required: true })
|
token: core.getInput('token', { required: true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,7 +83,7 @@ async function main () {
|
|||||||
return await runManifest(command)
|
return await runManifest(command)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { token, fork, defaultBranch, apiUrl, repoUrl } = getGitHubInput()
|
const { token, fork, defaultBranch, apiUrl, graphqlUrl, repoUrl } = getGitHubInput()
|
||||||
|
|
||||||
const bumpMinorPreMajor = getBooleanInput('bump-minor-pre-major')
|
const bumpMinorPreMajor = getBooleanInput('bump-minor-pre-major')
|
||||||
const bumpPatchForMinorPreMajor = getBooleanInput('bump-patch-for-minor-pre-major')
|
const bumpPatchForMinorPreMajor = getBooleanInput('bump-patch-for-minor-pre-major')
|
||||||
@@ -109,7 +111,8 @@ async function main () {
|
|||||||
releaseType,
|
releaseType,
|
||||||
defaultBranch,
|
defaultBranch,
|
||||||
pullRequestTitlePattern,
|
pullRequestTitlePattern,
|
||||||
apiUrl
|
apiUrl,
|
||||||
|
graphqlUrl
|
||||||
})
|
})
|
||||||
|
|
||||||
if (releaseCreated) {
|
if (releaseCreated) {
|
||||||
@@ -129,6 +132,7 @@ async function main () {
|
|||||||
packageName,
|
packageName,
|
||||||
path,
|
path,
|
||||||
apiUrl,
|
apiUrl,
|
||||||
|
graphqlUrl,
|
||||||
repoUrl,
|
repoUrl,
|
||||||
fork,
|
fork,
|
||||||
token,
|
token,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"homepage": "https://github.com/bcoe/release-please-action#readme",
|
"homepage": "https://github.com/bcoe/release-please-action#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
"release-please": "^12.5.0"
|
"release-please": "^12.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.27.0",
|
"@vercel/ncc": "^0.27.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user