From 41c448cc8917ac5e7d075dd76a31700c443991a8 Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Thu, 25 Jul 2024 15:14:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20automatic=20issue=20creati?= =?UTF-8?q?on=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create_issues.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/create_issues.yaml diff --git a/.github/workflows/create_issues.yaml b/.github/workflows/create_issues.yaml new file mode 100644 index 00000000..f01dbf7f --- /dev/null +++ b/.github/workflows/create_issues.yaml @@ -0,0 +1,30 @@ +name: "Run TODO to Issue" + +on: + push: + branches: + - master + workflow_dispatch: + inputs: + MANUAL_COMMIT_REF: + description: "The SHA of the commit to get the diff for" + required: true + MANUAL_BASE_REF: + description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here" + required: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: "TODO to Issue" + uses: alstr/todo-to-issue-action@v4 + id: "todo" + env: + MANUAL_COMMIT_REF: ${{ inputs.MANUAL_COMMIT_REF }} + MANUAL_BASE_REF: ${{ inputs.MANUAL_BASE_REF }} + with: + CLOSE_ISSUES: false + AUTO_ASSIGN: true + IDENTIFIERS: '[{"name": "@TODO", "labels": ["todo"]}]' \ No newline at end of file