mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
30 lines
811 B
YAML
30 lines
811 B
YAML
name: Auto approve
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
- review_requested
|
|
|
|
jobs:
|
|
auto-approve:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
steps:
|
|
- name: Check if organization member
|
|
id: is_organization_member
|
|
uses: JamesSingleton/is-organization-member@1.0.1
|
|
with:
|
|
organization: "yewstack"
|
|
username: ${{ github.event.pull_request.user.login }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Auto approve
|
|
uses: hmarr/auto-approve-action@v3
|
|
if: ${{ steps.is_organization_member.outputs.result == 'true' || github.actor == 'dependabot[bot]' }}
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|