mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 13:50:20 +00:00
skip_changelog: move label jobs into main workflow
Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
parent
1c1ca9d356
commit
fbe8339343
2 changed files with 37 additions and 42 deletions
37
.github/workflows/ansible-ci.yml
vendored
37
.github/workflows/ansible-ci.yml
vendored
|
@ -21,6 +21,43 @@ env:
|
||||||
ANSIBLE_GALAXY_SERVER_LIST: "galaxy"
|
ANSIBLE_GALAXY_SERVER_LIST: "galaxy"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pr-label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- name: "Confirm correct pull request title"
|
||||||
|
uses: deepakputhraya/action-pr-title@master
|
||||||
|
with:
|
||||||
|
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog'
|
||||||
|
|
||||||
|
- name: "Apply label"
|
||||||
|
if: github.event.pull_request.labels.length == 0
|
||||||
|
uses: bcoe/conventional-release-labels@v1
|
||||||
|
with:
|
||||||
|
type_labels: |
|
||||||
|
{
|
||||||
|
"feature": "enhancement",
|
||||||
|
"feat": "enhancement",
|
||||||
|
"fix": "bugfix",
|
||||||
|
"major": "major",
|
||||||
|
"breaking": "breaking",
|
||||||
|
"minor": "minor",
|
||||||
|
"enhancement": "enhancement",
|
||||||
|
"deprecated": "deprecated",
|
||||||
|
"removed": "removed",
|
||||||
|
"security": "security",
|
||||||
|
"bug": "bug",
|
||||||
|
"bugfix": "bugfix",
|
||||||
|
"docs": "trivial",
|
||||||
|
"packaging": "trivial",
|
||||||
|
"test": "trivial",
|
||||||
|
"refactor": "trivial",
|
||||||
|
"refactoring": "trivial",
|
||||||
|
"skip-release": "skip_changelog",
|
||||||
|
"skip_changelog": "skip_changelog"
|
||||||
|
}
|
||||||
|
|
||||||
ansible-lint:
|
ansible-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
42
.github/workflows/conventional-label.yml
vendored
42
.github/workflows/conventional-label.yml
vendored
|
@ -1,42 +0,0 @@
|
||||||
---
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
types: [opened, edited, synchronize, reopened]
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
name: Auto label pull request
|
|
||||||
jobs:
|
|
||||||
label:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: "Confirm correct pull request title"
|
|
||||||
uses: mmubeen/action-pr-title@master # until PR gets merged https://github.com/deepakputhraya/action-pr-title/pull/29
|
|
||||||
with:
|
|
||||||
allowed_prefixes: 'feat,feature,fix,major,breaking,minor,enhancement,deprecated,removed,security,bug,bugfix,docs,packaging,test,refactor,refactoring,skip-release,skip_changelog'
|
|
||||||
|
|
||||||
- name: "Apply label"
|
|
||||||
if: github.event.pull_request.labels.length == 0
|
|
||||||
uses: bcoe/conventional-release-labels@v1
|
|
||||||
with:
|
|
||||||
type_labels: |
|
|
||||||
{
|
|
||||||
"feature": "enhancement",
|
|
||||||
"feat": "enhancement",
|
|
||||||
"fix": "bugfix",
|
|
||||||
"major": "major",
|
|
||||||
"breaking": "breaking",
|
|
||||||
"minor": "minor",
|
|
||||||
"enhancement": "enhancement",
|
|
||||||
"deprecated": "deprecated",
|
|
||||||
"removed": "removed",
|
|
||||||
"security": "security",
|
|
||||||
"bug": "bug",
|
|
||||||
"bugfix": "bugfix",
|
|
||||||
"docs": "trivial",
|
|
||||||
"packaging": "trivial",
|
|
||||||
"test": "trivial",
|
|
||||||
"refactor": "trivial",
|
|
||||||
"refactoring": "trivial",
|
|
||||||
"skip-release": "skip_changelog",
|
|
||||||
"skip_changelog": "skip_changelog"
|
|
||||||
}
|
|
Loading…
Reference in a new issue