mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
58897ece76
* ci(build): add threshold to build product workflow - Intorduce threshold for build product checking to warn the administrator * Add permissions for workflow from fork repo * Update the permission for workflow
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
name: PR Open Greeting
|
|
# Note that this `pull_request_target` is vulnerable, it grants write access to a fork repo
|
|
# DO NOT ADD ANY CHECKOUT/CACHING in this workflow
|
|
on:
|
|
pull_request_target:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
pr-open-greeting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions-cool/check-user-permission@v2
|
|
id: isTeamMember
|
|
with:
|
|
require: 'write'
|
|
username: ${{ github.event.pull_request.user.login }}
|
|
|
|
- uses: actions-awesome/pr-helper@1.0.15
|
|
if: steps.isTeamMember.outputs.require-result == 'false'
|
|
with:
|
|
actions: 'add-assignees, add-reviewers, greeting, add-labels'
|
|
assignees: 'element-plus/backers'
|
|
reviewers: 'element-plus/backers'
|
|
labels: 'Contribution::Community'
|
|
token: ${{ github.token }}
|
|
pr-number: ${{ github.event.pull_request.number }}
|
|
greeting-message: 'Hello %user%, thank you for contributing to %repo%, please see our [guideline](%guideline%) to see how to make contribution'
|
|
greeting-guideline-address: 'https://github.com/element-plus/element-plus/blob/dev/CONTRIBUTING.md'
|