File tree 2 files changed +53
-2
lines changed
2 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,30 @@ body:
36
36
attributes :
37
37
value : ' ### Environment'
38
38
39
- - type : textarea
39
+ - type : dropdown
40
40
id : os
41
41
attributes :
42
42
label : OS
43
- placeholder : ' printf "$(uname -srm)\n$(cat /etc/os-release)\n"'
43
+ options :
44
+ - ' RedHat'
45
+ - ' CentOS'
46
+ - ' Fedora'
47
+ - ' Ubuntu'
48
+ - ' Debian'
49
+ - ' Flatcar'
50
+ - ' Flatcar Container Linux by Kinvolk'
51
+ - ' Suse'
52
+ - ' openSUSE Leap'
53
+ - ' openSUSE Tumbleweed'
54
+ - ' ClearLinux'
55
+ - ' OracleLinux'
56
+ - ' AlmaLinux'
57
+ - ' Rocky'
58
+ - ' Amazon'
59
+ - ' Kylin Linux Advanced Server'
60
+ - ' UnionTech'
61
+ - ' UniontechOS'
62
+ - ' openEuler'
44
63
validations :
45
64
required : true
46
65
Original file line number Diff line number Diff line change
1
+ name : Issue labeler
2
+ on :
3
+ issues :
4
+ types : [opened]
5
+
6
+ permissions :
7
+ contents : read
8
+
9
+ jobs :
10
+ label-component :
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ issues : write
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Parse issue form
19
+ uses : stefanbuck/github-issue-parser@v3
20
+ id : issue-parser
21
+ with :
22
+ template-path : .github/ISSUE_TEMPLATE/bug-report.yaml
23
+
24
+ - name : Set labels based on OS field
25
+ uses : redhat-plumbers-in-action/advanced-issue-labeler@v2
26
+ with :
27
+ issue-form : ${{ steps.issue-parser.outputs.jsonString }}
28
+ section : os
29
+ block-list : |
30
+ None
31
+ Other
32
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments