mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-16 20:29:45 +00:00
Update autolabeler.yml (#2968)
This commit is contained in:
parent
d4ac4809c0
commit
8441e65000
1 changed files with 21 additions and 16 deletions
9
.github/workflows/autolabeler.yml
vendored
9
.github/workflows/autolabeler.yml
vendored
|
@ -11,12 +11,12 @@ jobs:
|
|||
permissions:
|
||||
pull-requests: write
|
||||
env:
|
||||
CONFIG_PATH: .github/autolabeler-config.json
|
||||
CONFIG_PATH: .github/autolabeler-config_new.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install minimatch
|
||||
- name: Install dependencies
|
||||
run: npm install minimatch
|
||||
|
||||
- name: Label PR based on file changes and PR template
|
||||
|
@ -61,6 +61,8 @@ jobs:
|
|||
labelsToAdd.add(label);
|
||||
}
|
||||
}
|
||||
//if two labels or more are added, return
|
||||
if (labelsToAdd.size < 2) {
|
||||
const templateLabelMappings = {
|
||||
"🐞 **Bug fix**": "bugfix",
|
||||
"✨ **New feature**": "feature",
|
||||
|
@ -76,6 +78,9 @@ jobs:
|
|||
labelsToAdd.add(label);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
console.log(`Labels to add: ${Array.from(labelsToAdd).join(", ")}`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue