142 lines
3.2 KiB
JSON
142 lines
3.2 KiB
JSON
{
|
|
"version": "1.0",
|
|
"tasks": [
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "PrAutoLabel",
|
|
"subCapability": "Path",
|
|
"version": "1.0",
|
|
"id": "ldNQNnhTM",
|
|
"config": {
|
|
"taskName": "Add tags (paths)",
|
|
"configs": [
|
|
{
|
|
"label": "Packaging",
|
|
"pathFilter": [
|
|
"SPECS/",
|
|
"SPECS-SIGNED/"
|
|
]
|
|
},
|
|
{
|
|
"label": "documentation",
|
|
"pathFilter": [
|
|
"toolkit/docs/"
|
|
]
|
|
},
|
|
{
|
|
"label": "Tools",
|
|
"pathFilter": [
|
|
"toolkit/tools/",
|
|
"toolkit/scripts/"
|
|
]
|
|
},
|
|
{
|
|
"label": "Schema",
|
|
"pathFilter": [
|
|
"toolkit/imageconfigs/",
|
|
"toolkit/tools/imagegen/configuration"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestResponder",
|
|
"version": "1.0",
|
|
"id": "znSU-jzNE",
|
|
"config": {
|
|
"taskName": "Apply security tag for CVE patches",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "prMatchesPattern",
|
|
"parameters": {
|
|
"matchRegex": "(CVE|cve)-\\d+-\\d+\\.(no)?patch"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request",
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "security"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "IssueResponder",
|
|
"subCapability": "PullRequestResponder",
|
|
"version": "1.0",
|
|
"id": "7jJOHIRF6",
|
|
"config": {
|
|
"taskName": "Add label for automatic PRs",
|
|
"conditions": {
|
|
"operator": "and",
|
|
"operands": [
|
|
{
|
|
"name": "isAction",
|
|
"parameters": {
|
|
"action": "opened"
|
|
}
|
|
},
|
|
{
|
|
"name": "isActivitySender",
|
|
"parameters": {
|
|
"user": "CBL-Mariner-Bot"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eventType": "pull_request",
|
|
"eventNames": [
|
|
"pull_request",
|
|
"issues",
|
|
"project_card"
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "addLabel",
|
|
"parameters": {
|
|
"label": "Automatic PR"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"taskType": "trigger",
|
|
"capabilityId": "PrAutoLabel",
|
|
"subCapability": "Branch",
|
|
"version": "1.0",
|
|
"id": "lBG0b8Sb8Mpdm0byiViDh",
|
|
"config": {
|
|
"taskName": "Add labels for PRs to common branches",
|
|
"configs": [
|
|
{
|
|
"label": "1.0-dev",
|
|
"branchName": "1.0-dev"
|
|
},
|
|
{
|
|
"label": "main",
|
|
"branchName": "main"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"userGroups": []
|
|
}
|