combined todo to issue workflows

This commit is contained in:
Adriano Caloiaro 2023-02-23 12:59:31 -07:00
parent ad58949cd0
commit 6c33a95e56
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75
2 changed files with 13 additions and 21 deletions

View file

@ -1,5 +1,14 @@
name: "Run TODO to Issue"
on: ["push"]
on:
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
push:
jobs:
build:
runs-on: "ubuntu-latest"
@ -7,6 +16,9 @@ jobs:
- uses: "actions/checkout@v3"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v4"
env:
MANUAL_COMMIT_REF: ${{ inputs.MANUAL_COMMIT_REF }}
MANUAL_BASE_REF: ${{ inputs.MANUAL_BASE_REF }}
with:
AUTO_ASSIGN: true
AUTO_P: true

View file

@ -1,20 +0,0 @@
name: "Manuallly run TODO to Issue"
on:
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@master"
env:
MANUAL_COMMIT_REF: ${{ inputs.MANUAL_COMMIT_REF }}
MANUAL_BASE_REF: ${{ inputs.MANUAL_BASE_REF }}