Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .github/workflows/issue-package-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ jobs:
"label": "WASM"
},
"Sentry.Browser.Loader": {
"label": "Browser\nLoader Script"
"label": "Browser"
},
"Sentry.Browser.CDN.bundle": {
"label": "Browser\nCDN Bundle"
"label": "Browser"
}
}
export_to: output
Expand All @@ -134,3 +134,29 @@ jobs:
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/[email protected]
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": "Browser"
},
"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.packageLabel.outputs.label }}
Loading