This repository was archived by the owner on Mar 23, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy pathgetInputs.ts
More file actions
50 lines (35 loc) · 1.75 KB
/
getInputs.ts
File metadata and controls
50 lines (35 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as core from '@actions/core'
export const getRemoteRepoName = (): string => {
return core.getInput('remote-repository-name', { required: false })
}
export const getRemoteOrgName = (): string => {
return core.getInput('remote-organization-name', { required: false })
}
export const getPathToSignatures = (): string =>
core.getInput('path-to-signatures', { required: false })
export const getPathToDocument = (): string =>
core.getInput('path-to-document', { required: false })
export const getBranch = (): string =>
core.getInput('branch', { required: false })
export const getAllowListItem = (): string =>
core.getInput('allowlist', { required: false })
export const getEmptyCommitFlag = (): string =>
core.getInput('empty-commit-flag', { required: false })
export const getSignedCommitMessage = (): string =>
core.getInput('signed-commit-message', { required: false })
export const getCreateFileCommitMessage = (): string =>
core.getInput('create-file-commit-message', { required: false })
export const getCustomNotSignedPrComment = (): string =>
core.getInput('custom-notsigned-prcomment', { required: false })
export const getCustomAllSignedPrComment = (): string =>
core.getInput('custom-allsigned-prcomment', { required: false })
export const getUseDcoFlag = (): string =>
core.getInput('use-dco-flag', { required: false })
export const getCustomPrSignComment = (): string =>
core.getInput('custom-pr-sign-comment', { required: false })
export const lockPullRequestAfterMerge = (): string =>
core.getInput('lock-pullrequest-aftermerge', { required: false })
export const getPrNumber = (prNumberFromContext: number): number =>
prNumberFromContext ?
prNumberFromContext :
Number(core.getInput('pr-number', { required: false }))