johnnymugs / action-auto-reviews-from-branches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions Auto Reviews Pull Request From Selected Branches

This action is a automatic reviews pull request from selected branches by github bot.

Configuration with With

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]'

Example usage

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.

About


Languages

Language:Ruby 46.3%Language:JavaScript 43.3%Language:Dockerfile 10.4%