mirror of
https://github.com/prometheus-community/ansible
synced 2024-12-12 05:12:31 +00:00
620acbb7de
Signed-off-by: gardar <gardar@users.noreply.github.com>
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
---
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
name: Auto label pull request
|
|
jobs:
|
|
label:
|
|
runs-on: ubuntu-latest
|
|
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"
|
|
}
|