Skip to content

Commit c8cff88

Browse files
authored
Add GitHub Actions workflow for TODO issue creation
1 parent e775572 commit c8cff88

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Create issues from TODOs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
importAll:
7+
default: false
8+
required: false
9+
type: boolean
10+
description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing.
11+
push:
12+
branches: # do not set multiple branches, todos might be added and then get referenced by themselves in case of a merge
13+
- main
14+
- master
15+
16+
permissions:
17+
issues: write
18+
repository-projects: read
19+
contents: read
20+
21+
jobs:
22+
todos:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Run Issue Bot
29+
uses: juulsn/todo-issue@main
30+
with:
31+
excludePattern: '^(node_modules/)'
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)