mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci(danger): Changed pattern for matching area labels
This commit is contained in:
parent
893d6ad5aa
commit
c1d5514a4e
@ -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…
Reference in New Issue
Block a user