Skip to content

Commit 0cdf1c3

Browse files
ci: use issue forms
1 parent c3f23cd commit 0cdf1c3

File tree

6 files changed

+157
-69
lines changed

6 files changed

+157
-69
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Bug Report
2+
labels: [bug]
3+
description: Did something not work as expected?
4+
body:
5+
- type: dropdown
6+
id: scripts
7+
attributes:
8+
label: Script(s)
9+
multiple: true
10+
options:
11+
- "`clipshot.lua`"
12+
- "`discord.lua`"
13+
- "`misc.lua`"
14+
- "`open-dialog/kdialog.lua`"
15+
- "`open-dialog/powershell.lua`"
16+
- "`open-dialog/zenity.lua`"
17+
validations: {required: true}
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Description
22+
description: >-
23+
Provide a detailed description of the
24+
issue, and why you consider it to be a bug.
25+
validations: {required: true}
26+
- type: textarea
27+
id: suggestion
28+
attributes:
29+
label: Possible Fix
30+
description: >-
31+
Can you suggest a fix or reason for the bug?
32+
validations: {required: false}
33+
- type: textarea
34+
id: reproduce
35+
attributes:
36+
label: Steps to Reproduce
37+
description: >-
38+
Provide some screenshots, or an unambiguous set of steps to
39+
reproduce this bug. Include code to reproduce, if relevant.
40+
validations: {required: false}
41+
- type: checkboxes
42+
id: operating-system
43+
attributes:
44+
label: Operating System(s)
45+
options:
46+
- label: Windows
47+
- label: Linux
48+
- label: macOS
49+
- type: input
50+
id: mpv-version
51+
attributes:
52+
label: MPV version
53+
validations: {required: false}
54+
- type: input
55+
id: lua-version
56+
attributes:
57+
label: Lua version
58+
validations: {required: false}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Feature Request
2+
labels: [enhancement]
3+
description: Do you want something changed or implemented?
4+
body:
5+
- type: dropdown
6+
id: scripts
7+
attributes:
8+
label: Script(s)
9+
multiple: true
10+
options:
11+
- "`clipshot.lua`"
12+
- "`discord.lua`"
13+
- "`misc.lua`"
14+
- "`open-dialog/kdialog.lua`"
15+
- "`open-dialog/powershell.lua`"
16+
- "`open-dialog/zenity.lua`"
17+
validations: {required: true}
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Description
22+
description: >-
23+
Provide a detailed description of the
24+
change or addition you are proposing.
25+
validations: {required: true}
26+
- type: textarea
27+
id: suggestion
28+
attributes:
29+
label: Possible Implementation
30+
description: >-
31+
Can you suggest an idea for implementing the feature?
32+
validations: {required: false}
33+
- type: textarea
34+
id: context
35+
attributes:
36+
label: Context
37+
description: >-
38+
Why is this change or addition important to you?
39+
How would you use it, and how can it benefit other users?
40+
validations: {required: false}
41+
- type: checkboxes
42+
id: operating-system
43+
attributes:
44+
label: Operating System(s)
45+
options:
46+
- label: Windows
47+
- label: Linux
48+
- label: macOS

.github/workflows/issues.yml

Lines changed: 49 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,70 @@
1-
name: Add issue to the appropriate project
1+
name: Automate issue labels & projects
22

33
on:
44
issues:
55
types: [opened]
66

77
jobs:
8+
add-os-label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Add Windows label
12+
if: contains(github.event.issue.body, '[x] Windows')
13+
uses: jeffdanielperso/[email protected]
14+
with:
15+
labels-add: os:windows
16+
- name: Add Linux label
17+
if: contains(github.event.issue.body, '[x] Linux')
18+
uses: jeffdanielperso/[email protected]
19+
with:
20+
labels-add: os:linux
21+
- name: Add macOS label
22+
if: contains(github.event.issue.body, '[x] macOS')
23+
uses: jeffdanielperso/[email protected]
24+
with:
25+
labels-add: os:macos
26+
827
add-to-project:
928
runs-on: ubuntu-latest
1029
steps:
1130
- name: Add to Clipshot project
12-
if: |
13-
contains(github.event.issue.body, '[x] `clipshot.lua`')
14-
uses: alex-page/[email protected]
31+
if: contains(github.event.issue.body, '`clipshot.lua`')
32+
uses: jeffdanielperso/[email protected]
1533
with:
16-
project: Clipshot
17-
column: To do
18-
repo-token: ${{secrets.GITHUB_TOKEN}}
19-
34+
project-name: Clipshot
35+
project-column: To do
2036
- name: Add to Misc project
21-
if: |
22-
contains(github.event.issue.body, '[x] `misc.lua`')
23-
uses: alex-page/[email protected]
37+
if: contains(github.event.issue.body, '`misc.lua`')
38+
uses: jeffdanielperso/[email protected]
2439
with:
25-
project: Misc
26-
column: To do
27-
repo-token: ${{secrets.GITHUB_TOKEN}}
28-
40+
project-name: Misc
41+
project-column: To do
42+
project-scope: repository
2943
- name: Add to Open Dialog (KDialog) project
30-
if: |
31-
contains(github.event.issue.body, '[x] `open-dialog/kdialog.lua`')
32-
uses: alex-page/[email protected]
44+
if: contains(github.event.issue.body, '`open-dialog/kdialog.lua`')
45+
uses: jeffdanielperso/[email protected]
3346
with:
34-
project: Open Dialog (KDialog)
35-
column: To do
36-
repo-token: ${{secrets.GITHUB_TOKEN}}
37-
47+
project-name: Open Dialog (KDialog)
48+
project-column: To do
49+
project-scope: repository
3850
- name: Add to Open Dialog (Zenity) project
39-
if: |
40-
contains(github.event.issue.body, '[x] `open-dialog/zenity.lua`')
41-
uses: alex-page/[email protected]
51+
if: contains(github.event.issue.body, '`open-dialog/zenity.lua`')
52+
uses: jeffdanielperso/[email protected]
4253
with:
43-
project: Open Dialog (Zenity)
44-
column: To do
45-
repo-token: ${{secrets.GITHUB_TOKEN}}
46-
54+
project-name: Open Dialog (Zenity)
55+
project-column: To do
56+
project-scope: repository
4757
- name: Add to Open Dialog (PowerShell) project
48-
if: |
49-
contains(github.event.issue.body, '[x] `open-dialog/powershell.lua`')
50-
uses: alex-page/[email protected]
58+
if: contains(github.event.issue.body, '`open-dialog/powershell.lua`')
59+
uses: jeffdanielperso/[email protected]
5160
with:
52-
project: Open Dialog (PowerShell)
53-
column: To do
54-
repo-token: ${{secrets.GITHUB_TOKEN}}
55-
61+
project-name: Open Dialog (PowerShell)
62+
project-column: To do
63+
project-scope: repository
5664
- name: Add to Discord project
57-
if: |
58-
contains(github.event.issue.body, '[x] `discord.lua`')
59-
uses: alex-page/[email protected]
65+
if: contains(github.event.issue.body, '`discord.lua`')
66+
uses: jeffdanielperso/[email protected]
6067
with:
61-
project: Discord
62-
column: To do
63-
repo-token: ${{secrets.GITHUB_TOKEN}}
68+
project-name: Discord
69+
project-column: To do
70+
project-scope: repository

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v2
1919
name: Checkout repository
2020
- uses: leafo/[email protected]
21-
name: Install lua - ${{matrix.lua.ver}}
21+
name: Install lua [${{matrix.lua.ver}}]
2222
with:
2323
luaVersion: ${{matrix.lua.ver}}
2424
- uses: leafo/[email protected]

0 commit comments

Comments
 (0)