From 7d1bc5f0c5e503cf706bb592f26e220c560acc62 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Fri, 24 Feb 2023 23:51:14 +0100 Subject: [PATCH] removed todo to issue workflow (#7401) * removed todo to issue workflow * Revert "removed todo to issue workflow" This reverts commit 915c18fe2b94d981433a10f26f912d2c4e8b28d3. * Make todo only when code reaches main --------- Co-authored-by: zomars --- .github/workflows/todo-to-issue.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/todo-to-issue.yml b/.github/workflows/todo-to-issue.yml index b2caf8e54d..e3fd49d4be 100644 --- a/.github/workflows/todo-to-issue.yml +++ b/.github/workflows/todo-to-issue.yml @@ -1,6 +1,6 @@ name: TODO to Issue on: - pull_request_target: # So we can test on forks + push: branches: - main workflow_dispatch: @@ -12,17 +12,13 @@ on: 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 concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: todos: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 2 + - uses: actions/checkout@v3 - name: "Add TODOs to issues" uses: "alstr/todo-to-issue-action@v4" env: