mirror of
https://github.com/primer/css.git
synced 2024-11-23 03:10:10 +03:00
global flag on matchAll
This commit is contained in:
parent
34243054b2
commit
06cd5a551c
2
.github/workflows/welcome.yml
vendored
2
.github/workflows/welcome.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
||||
script: |
|
||||
const diff_url = context.payload.pull_request.diff_url
|
||||
const result = await github.request(diff_url)
|
||||
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/m)]
|
||||
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/mg)]
|
||||
if (match && match[0]) {
|
||||
return match[0][1]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user