From 23f246855a96839146655c66d5afe3fbe5f8b370 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Tue, 12 Sep 2023 12:10:47 +0400 Subject: [PATCH] CI: add TODO-comments tracking as issues --- .github/workflows/issues.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/issues.yml diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 00000000..ab6d426d --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,40 @@ +name: Issues +on: + push: + branches: [main, master] + workflow_dispatch: + inputs: + commit_ref: + description: "The SHA of the commit to get the diff for" + required: true + 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: + TODO: + runs-on: ubuntu-latest + continue-on-error: true + permissions: + issues: write + contents: read + pull-requests: read + repository-projects: read + + steps: + - uses: actions/checkout@v4 + - name: TODO to Issues + uses: "alstr/todo-to-issue-action@v4" + env: + MANUAL_COMMIT_REF: ${{ inputs.commit_ref }} + MANUAL_BASE_REF: ${{ inputs.base_ref }} + with: + CLOSE_ISSUES: true + AUTO_ASSIGN: true + IDENTIFIERS: > + [ + { "name": "TODO", "labels": [] }, + { "name": "FIXME", "labels": [] }, + { "name": "XXX", "labels": [] }, + { "name": "HACK", "labels": [] }, + { "name": "BUG", "labels": ["bug"] } + ]