forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.47 KB
/
issue-triage-strategic-adopter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Issue Triage - Strategic Adopter'
on:
issues:
types: [opened]
jobs:
apply-label:
runs-on: ubuntu-latest
if: |
!github.event.issue.pull_request
steps:
- uses: actions/checkout@main
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.issue.body }}
regex:
'\b(Instana|QRadar|MaaS360|Environmental Intelligence Suite|Watson
Orchestrate|Watson Assistant|Planning Analytics|ReaQta|API
Connect|Fusion|Flash Storage|Envizi|Maximo|Turbonomic|Fusion
Microsoft 360)|StepZen|APP Connect Enterprise|Watson
Discovery|Watson Code Assistant|Hybrid Cloud Mesh|AIOps
Insights|Databand|OpenPages|watsonx.data|watsonx.ai|watsonx.gov|QRadar
Log Insights|QRadar XDR|QRadar EDR (ReaQta)|QRadar SOAR|Randori
ASM|Guardium Insights|Trusteer Fraud Protection|Security Verify on
Cloud|Sterling Data Exchange SaaS|TRIRIGA|Sterling Order and
Inventory Management|Supply Chain Intelligence Suite\b'
flags: g
- uses: actions/github-script@v6
if: ${{ steps.regex-match.outputs.match != '' }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['adopter: strategic-product']
})