mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/dangerjs_area_label_match' into 'master'
ci:danger: Changed pattern for matching area labels See merge request espressif/esp-idf!23005
This commit is contained in:
commit
c0a68a4a24
@ -5,10 +5,10 @@
|
||||
*/
|
||||
module.exports = async function () {
|
||||
const projectId = 103; // ESP-IDF
|
||||
const areaLabelColor = "#d2eBFA";
|
||||
const areaLabelColor = /^#d2ebfa$/i; // match color code (case-insensitive)
|
||||
const projectLabels = await danger.gitlab.api.Labels.all(projectId); // Get all project labels
|
||||
const areaLabels = projectLabels
|
||||
.filter((label) => label.color === areaLabelColor)
|
||||
.filter((label) => areaLabelColor.test(label.color))
|
||||
.map((label) => label.name); // Filter only area labels
|
||||
const mrLabels = danger.gitlab.mr.labels; // Get MR labels
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user