mention: only owner/members/collaborators trigger seats (public repo)

This commit is contained in:
teahubxyz committed 2026-10-10 20:08:07 -07:00
1 parent 83bc5d4c60
commit 9108adf4c6
1 file changed
+4 -2
+4 -2
View File
@@ -14,10 +14,12 @@ concurrency:
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
reply: 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: >- if: >-
contains(github.event.comment.body || github.event.issue.body, '@') && 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 runs-on: ubuntu-latest
timeout-minutes: 8 timeout-minutes: 8
steps: steps: