This action is a automatic reviews pull request from selected branches by github bot.
The following settings must be passed as environment variables as shown in the example.
Key | Value | Suggested Type | Required | Default |
---|---|---|---|---|
GITHUB_TOKEN |
Personal github token. recommend use GITHUN_TOKEN | secret env |
Yes | N/A |
EVENT_TYPE |
Type of event will have APPROVE , COMMENT and REQUEST_CHANGES . |
env |
No | APPROVE |
BRANCHES |
Select the branch that you want to use. | env |
No | release/* |
MESSAGE |
Can add comment at event select. | env |
No | Success approve. Enjoy 🏳️🌈🎉. |
AUTHOR |
Select the actor that you want to use. | env |
No | 'dependabot-preview[bot], dependabot[bot]' |
name: Auto reviews release
on: pull_request
jobs:
reviews:
runs-on: ubuntu-latest
steps:
- name: Auto reviews branches
uses: golfzaptw/action-auto-reviews-from-branches@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
EVENT_TYPE: APPROVE
BRANCHES: release/*
AUTHOR: 'dependabot-preview[bot], dependabot[bot], golfzaptw'
MESSAGE: Nice approve from github bot.