-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (53 loc) · 2 KB
/
Copy pathneed-fix-to-issue.yml
File metadata and controls
57 lines (53 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Need fix to Issue
# ==========================
# Reusable workflow to convert comments requiring fixes (TODO, FIXME) to issues.
# Mainly using [TODO to Issue Action](https://github.com/alstr/todo-to-issue-action), with some opinionated defaults.
name: "Need fix to Issue"
on:
push:
branches:
- "main"
workflow_dispatch:
#checkov:skip=CKV_GHA_7: required
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
workflow_call:
inputs:
runs-on:
description: "Json array of runner(s) to use. See <https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job>."
type: string
default: '["ubuntu-latest"]'
required: false
manual-commit-ref:
description: "The SHA of the commit to get the diff for."
type: string
required: false
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."
type: string
required: false
permissions:
contents: read
issues: write
jobs:
need-fix-to-issue:
name: "🔍 Convert TODO/FIXME to Issue"
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
steps:
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@c45b007d85c8edf3365b139a9d4c65793e7c674f" # v5.1.13
with:
IDENTIFIERS: |
[
{"name": "TODO:", "labels": ["help wanted"]},
{"name": "FIXME:", "labels": ["bug"]}
]
env:
MANUAL_COMMIT_REF: ${{ inputs.manual-commit-ref }}
MANUAL_BASE_REF: ${{ inputs.manual-base-ref }}