mention: only owner/members/collaborators trigger seats (public repo)
This commit is contained in:
1 parent
83bc5d4c60
commit
9108adf4c6
1 file changed
+4
-2
@@ -14,10 +14,12 @@ concurrency:
|
||||
cancel-in-progress: false
|
||||
jobs:
|
||||
reply:
|
||||
# cheap filter before a runner spins up: something that looks like a mention, not from a bot
|
||||
# cheap filter before a runner spins up: a mention, not from a bot, and only from people with a say in this repo
|
||||
# (public repo: strangers can comment, but must not be able to spend the seats' model credits)
|
||||
if: >-
|
||||
contains(github.event.comment.body || github.event.issue.body, '@') &&
|
||||
(github.event.comment.user.type || github.event.issue.user.type) != 'Bot'
|
||||
(github.event.comment.user.type || github.event.issue.user.type) != 'Bot' &&
|
||||
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association || github.event.issue.author_association)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 8
|
||||
steps:
|
||||
|
||||
Reference in new issue
Block a user