Skip to content

Replay feature appears to be interfering with iOS browser/webview click events #1922

Replay feature appears to be interfering with iOS browser/webview click events

Replay feature appears to be interfering with iOS browser/webview click events #1922

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/[email protected]
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": "Package: angular"
},
"@sentry.astro": {
"label": "Package: astro"
},
"@sentry.aws-serverless": {
"label": "Package: aws-serverless"
},
"@sentry.browser": {
"label": "Package: browser"
},
"@sentry.bun": {
"label": "Package: bun"
},
"@sentry.cloudflare": {
"label": "Package: cloudflare"
},
"@sentry.deno": {
"label": "Package: deno"
},
"@sentry.ember": {
"label": "Package: ember"
},
"@sentry.gatsby": {
"label": "Package: gatbsy"
},
"@sentry.google-cloud-serverless": {
"label": "Package: google-cloud-serverless"
},
"@sentry.nestjs": {
"label": "Package: nestjs"
},
"@sentry.nextjs": {
"label": "Package: nextjs"
},
"@sentry.node": {
"label": "Package: node"
},
"@sentry.nuxt": {
"label": "Package: nuxt"
},
"@sentry.react": {
"label": "Package: react"
},
"@sentry.remix": {
"label": "Package: remix"
},
"@sentry.solid": {
"label": "Package: solid"
},
"@sentry.solid": {
"label": "Package: solidstart"
},
"@sentry.svelte": {
"label": "Package: svelte"
},
"@sentry.sveltekit": {
"label": "Package: sveltekit"
},
"@sentry.vue": {
"label": "Package: vue"
},
"@sentry.wasm": {
"label": "Package: wasm"
},
"Sentry.Browser.Loader": {
"label": "Package-Meta: Loader"
},
"Sentry.Browser.CDN.bundle": {
"label": "Package-Meta: CDN"
}
}
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 }}