mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
added dropdown in OS field of the bug-report issue form and github workflow to auto lable (#11880)
This commit is contained in:
28
.github/ISSUE_TEMPLATE/bug-report.yaml
vendored
28
.github/ISSUE_TEMPLATE/bug-report.yaml
vendored
@@ -36,11 +36,35 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
value: '### Environment'
|
value: '### Environment'
|
||||||
|
|
||||||
- type: textarea
|
- type: dropdown
|
||||||
id: os
|
id: os
|
||||||
attributes:
|
attributes:
|
||||||
label: OS
|
label: OS
|
||||||
placeholder: 'printf "$(uname -srm)\n$(cat /etc/os-release)\n"'
|
options:
|
||||||
|
- 'RHEL 9'
|
||||||
|
- 'RHEL 8'
|
||||||
|
- 'Fedora 40'
|
||||||
|
- 'Ubuntu 24'
|
||||||
|
- 'Ubuntu 22'
|
||||||
|
- 'Ubuntu 20'
|
||||||
|
- 'Debian 12'
|
||||||
|
- 'Debian 11'
|
||||||
|
- 'Flatcar Container Linux'
|
||||||
|
- 'openSUSE Leap'
|
||||||
|
- 'openSUSE Tumbleweed'
|
||||||
|
- 'Oracle Linux 9'
|
||||||
|
- 'Oracle Linux 8'
|
||||||
|
- 'AlmaLinux 9'
|
||||||
|
- 'AlmaLinux 8'
|
||||||
|
- 'Rocky Linux 9'
|
||||||
|
- 'Rocky Linux 8'
|
||||||
|
- 'Amazon Linux 2'
|
||||||
|
- 'Kylin Linux Advanced Server V10'
|
||||||
|
- 'UOS Linux 20'
|
||||||
|
- 'openEuler 24'
|
||||||
|
- 'openEuler 22'
|
||||||
|
- 'openEuler 20'
|
||||||
|
- 'Other|Unsupported'
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|||||||
32
.github/workflows/auto-label-os.yml
vendored
Normal file
32
.github/workflows/auto-label-os.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Issue labeler
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label-component:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Parse issue form
|
||||||
|
uses: stefanbuck/github-issue-parser@v3
|
||||||
|
id: issue-parser
|
||||||
|
with:
|
||||||
|
template-path: .github/ISSUE_TEMPLATE/bug-report.yaml
|
||||||
|
|
||||||
|
- name: Set labels based on OS field
|
||||||
|
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
|
||||||
|
with:
|
||||||
|
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
|
||||||
|
section: os
|
||||||
|
block-list: |
|
||||||
|
None
|
||||||
|
Other
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user