mirror of
https://github.com/labring/sealos.git
synced 2026-08-30 17:58:09 +08:00
ci(main): add github.event.comment.author_association (#2772)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
||||
jobs:
|
||||
cherry-pick:
|
||||
name: Cherry Pick
|
||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick')
|
||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') && github.event.comment.author_association == 'MEMBER'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the latest code
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
name: Rebase
|
||||
runs-on: ubuntu-latest
|
||||
if: >-
|
||||
github.event.issue.pull_request != '' &&
|
||||
github.event.issue.pull_request != '' && github.event.comment.author_association == 'MEMBER' &&
|
||||
(
|
||||
contains(github.event.comment.body, '/rebase') ||
|
||||
contains(github.event.comment.body, '/autosquash')
|
||||
|
||||
Reference in New Issue
Block a user