Make inputs optional

Closes #125
This commit is contained in:
alstr 2022-10-21 17:49:40 +01:00
parent ffb5e5a6d1
commit b62b476311

View File

@ -10,23 +10,23 @@ branding:
inputs: inputs:
REPO: REPO:
description: "The path to the repository where the action will be used, e.g. 'alstr/my-repo' (automatically set)" description: "The path to the repository where the action will be used, e.g. 'alstr/my-repo' (automatically set)"
required: true required: false
default: '${{ github.repository }}' default: '${{ github.repository }}'
BEFORE: BEFORE:
description: 'The SHA of the last pushed commit (automatically set)' description: 'The SHA of the last pushed commit (automatically set)'
required: true required: false
default: '${{ github.event.before || github.base_ref }}' default: '${{ github.event.before || github.base_ref }}'
COMMITS: COMMITS:
description: 'An array of commit objects describing the pushed commits' description: 'An array of commit objects describing the pushed commits'
required: true required: false
default: '${{ toJSON(github.event.commits) }}' default: '${{ toJSON(github.event.commits) }}'
DIFF_URL: DIFF_URL:
description: 'The URL to use to get the diff (automatically set)' description: 'The URL to use to get the diff (automatically set)'
required: true required: false
default: '${{ github.event.pull_request.diff_url }}' default: '${{ github.event.pull_request.diff_url }}'
SHA: SHA:
description: 'The SHA of the latest commit (automatically set)' description: 'The SHA of the latest commit (automatically set)'
required: true required: false
default: '${{ github.sha }}' default: '${{ github.sha }}'
TOKEN: TOKEN:
description: 'The GitHub access token to allow us to retrieve, create and update issues (automatically set)' description: 'The GitHub access token to allow us to retrieve, create and update issues (automatically set)'
@ -40,11 +40,11 @@ inputs:
required: false required: false
CLOSE_ISSUES: CLOSE_ISSUES:
description: 'Optional input that specifies whether to attempt to close an issue when a TODO is removed' description: 'Optional input that specifies whether to attempt to close an issue when a TODO is removed'
required: true required: false
default: true default: true
AUTO_P: AUTO_P:
description: 'For multiline TODOs, format each line as a new paragraph when creating the issue' description: 'For multiline TODOs, format each line as a new paragraph when creating the issue'
required: true required: false
default: true default: true
PROJECTS_SECRET: PROJECTS_SECRET:
description: 'Encrypted secret corresponding to your personal access token (do not enter the actual secret)' description: 'Encrypted secret corresponding to your personal access token (do not enter the actual secret)'
@ -60,11 +60,11 @@ inputs:
required: false required: false
AUTO_ASSIGN: AUTO_ASSIGN:
description: 'Automatically assign new issues to the user who triggered the action' description: 'Automatically assign new issues to the user who triggered the action'
required: true required: false
default: false default: false
ACTOR: ACTOR:
description: 'The username of the person who triggered the action' description: 'The username of the person who triggered the action'
required: true required: false
default: '${{ github.actor }}' default: '${{ github.actor }}'
ISSUE_TEMPLATE: ISSUE_TEMPLATE:
description: 'The template used to format new issues' description: 'The template used to format new issues'