mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Merge pull request #11676 from shanemcd/automate-labels
Automate labels with GHA
This commit is contained in:
11
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
11
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Bug Report
|
name: Bug Report
|
||||||
description: Create a report to help us improve
|
description: Create a report to help us improve
|
||||||
labels:
|
|
||||||
- bug
|
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
@@ -39,6 +37,15 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: components
|
||||||
|
attributes:
|
||||||
|
label: Select the relevant components
|
||||||
|
options:
|
||||||
|
- label: UI
|
||||||
|
- label: API
|
||||||
|
- label: Docs
|
||||||
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: awx-install-method
|
id: awx-install-method
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
10
.github/issue_labeler.yml
vendored
10
.github/issue_labeler.yml
vendored
@@ -1,2 +1,12 @@
|
|||||||
needs_triage:
|
needs_triage:
|
||||||
- '.*'
|
- '.*'
|
||||||
|
"type:bug":
|
||||||
|
- "Please confirm the following"
|
||||||
|
"type:enhancement":
|
||||||
|
- "Feature Idea"
|
||||||
|
"component:ui":
|
||||||
|
- "\\[X\\] UI"
|
||||||
|
"component:api":
|
||||||
|
- "\\[X\\] API"
|
||||||
|
"component:docs":
|
||||||
|
- "\\[X\\] Docs"
|
||||||
|
|||||||
14
.github/pr_labeler.yml
vendored
Normal file
14
.github/pr_labeler.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
"component:api":
|
||||||
|
- any: ['awx/**/*', '!awx/ui/*']
|
||||||
|
|
||||||
|
"component:ui":
|
||||||
|
- any: ['awx/ui/**/*']
|
||||||
|
|
||||||
|
"component:docs":
|
||||||
|
- any: ['docs/**/*']
|
||||||
|
|
||||||
|
"component:cli":
|
||||||
|
- any: ['awxkit/**/*']
|
||||||
|
|
||||||
|
"component:collection":
|
||||||
|
- any: ['awx_collection/**/*']
|
||||||
@@ -1,21 +1,22 @@
|
|||||||
name: Triage
|
name: Label Issue
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
- reopened
|
||||||
|
- edited
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Label
|
name: Label Issue
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Label issues
|
- name: Label Issue
|
||||||
uses: github/issue-labeler@v2.4.1
|
uses: github/issue-labeler@v2.4.1
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
not-before: 2021-12-07T07:00:00Z
|
not-before: 2021-12-07T07:00:00Z
|
||||||
configuration-path: .github/issue_labeler.yml
|
configuration-path: .github/issue_labeler.yml
|
||||||
enable-versioned-regex: 0
|
enable-versioned-regex: 0
|
||||||
if: github.event_name == 'issues'
|
|
||||||
20
.github/workflows/label_pr.yml
vendored
Normal file
20
.github/workflows/label_pr.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Label PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Label PR
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Label PR
|
||||||
|
uses: actions/labeler@v3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: .github/pr_labeler.yml
|
||||||
Reference in New Issue
Block a user