From 1128faa949d11ea38483e65d6c31f388f1f7aa91 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 19 Nov 2020 13:27:59 +0100 Subject: [PATCH] Set defaults. --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index dc89843..28f2d07 100644 --- a/action.yml +++ b/action.yml @@ -11,21 +11,28 @@ inputs: REPO: description: "The path to the repository where the action will be used, e.g. 'alstr/my-repo' (automatically set)" required: true + default: "${{ github.repository }}" BEFORE: description: "The SHA of the last pushed commit (automatically set)" required: true + default: "${{ github.event.before }}" SHA: description: "The SHA of the latest commit (automatically set)" required: true + default: "${{ github.sha }}" TOKEN: description: "The GitHub access token to allow us to retrieve, create and update issues (automatically set)" required: true + default: "${{ secrets.GITHUB_TOKEN }}" LABEL: description: "The label that will be used to identify TODO comments (e.g. # TODO for Python)" required: true + default: "# TODO" COMMENT_MARKER: description: "The marker used to signify a line comment in your code (e.g. # for Python)" required: true + default: "#" CLOSE_ISSUES: description: "Optional input that specifies whether to attempt to close an issue when a TODO is removed (default: true)" required: false + default: "true"