Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
162 lines (156 loc) · 5.06 KB

File metadata and controls

162 lines (156 loc) · 5.06 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: 'Automation: Tag issue with package label'
on:
issues:
types: [opened]
jobs:
add_labels:
name: Add package label
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request }}
steps:
- name: Get used package from issue body
# https://github.com/actions-ecosystem/action-regex-match
uses: actions-ecosystem/action-regex-match@v2
id: packageName
with:
# Parse used package from issue body
text: ${{ github.event.issue.body }}
regex: '### Which SDK are you using\?\n\n(.*)\n\n'
- name: Map package to issue label
# https://github.com/kanga333/variable-mapper
uses: kanga333/variable-mapper@v0.3.0
id: packageLabel
if: steps.packageName.outputs.match != ''
with:
key: '${{ steps.packageName.outputs.group1 }}'
# Note: Since this is handled as a regex, and JSON parse wrangles slashes /, we just use `.` instead
map: |
{
"@sentry.angular": {
"label": "Angular"
},
"@sentry.astro": {
"label": "Astro"
},
"@sentry.aws-serverless": {
"label": "AWS Lambda"
},
"@sentry.browser": {
"label": "Browser"
},
"@sentry.bun": {
"label": "Bun"
},
"@sentry.cloudflare.-.hono": {
"label": "Hono"
},
"@sentry.cloudflare": {
"label": "Cloudflare Workers"
},
"@sentry.deno": {
"label": "Deno"
},
"@sentry.ember": {
"label": "Ember"
},
"@sentry.gatsby": {
"label": "Gatbsy"
},
"@sentry.google-cloud-serverless": {
"label": "Google Cloud Functions"
},
"@sentry.nestjs": {
"label": "Nest.js"
},
"@sentry.nextjs": {
"label": "Next.js"
},
"@sentry.node.-.express": {
"label": "Express"
},
"@sentry.node.-.fastify": {
"label": "Fastify"
},
"@sentry.node.-.koa": {
"label": "Koa"
},
"@sentry.node.-.hapi": {
"label": "Hapi"
},
"@sentry.node.-.connect": {
"label": "Connect"
},
"@sentry.node": {
"label": "Node.js"
},
"@sentry.nuxt": {
"label": "Nuxt"
},
"@sentry.react-router": {
"label": "React Router Framework"
},
"@sentry.react": {
"label": "React"
},
"@sentry.remix": {
"label": "Remix"
},
"@sentry.solid": {
"label": "Solid"
},
"@sentry.solidstart": {
"label": "SolidStart"
},
"@sentry.sveltekit": {
"label": "SvelteKit"
},
"@sentry.svelte": {
"label": "Svelte"
},
"@sentry.vue": {
"label": "Vue"
},
"@sentry.tanstackstart-react": {
"label": "Tanstack Start React"
},
"@sentry.wasm": {
"label": "WASM"
},
"Sentry.Browser.Loader": {
"label": "Browser"
},
"Sentry.Browser.CDN.bundle": {
"label": "Browser"
}
}
export_to: output
- name: Add package label if applicable
# Note: We only add the label if the issue is still open
if: steps.packageLabel.outputs.label != ''
uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ steps.packageLabel.outputs.label }}
- name: Map additional to issue label
# https://github.com/kanga333/variable-mapper
uses: kanga333/variable-mapper@v0.3.0
id: additionalLabel
if: steps.packageName.outputs.match != ''
with:
key: '${{ steps.packageName.outputs.group1 }}'
# Note: Since this is handled as a regex, and JSON parse wrangles slashes /, we just use `.` instead
map: |
{
"Sentry.Browser.Loader": {
"label": "Loader Script"
},
"Sentry.Browser.CDN.bundle": {
"label": "CDN Bundle"
}
}
export_to: output
- name: Add additional label if applicable
# Note: We only add the label if the issue is still open
if: steps.additionalLabel.outputs.label != ''
uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ steps.additionalLabel.outputs.label }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.