vsoch / pull-request-action

open a pull request when a branch is pushed or updated
https://github.com/marketplace/actions/pull-request-action
MIT License
174 stars 62 forks source link

Add/reviewers #26

Closed vsoch closed 4 years ago

vsoch commented 4 years ago

This PR will add support to allow for assignment of an individual or a team to a pull request, and will close #25. A simple example is below:

name: Pull Request on Branch Push
on:
  push:
    branches-ignore:
      - devel
jobs:
  auto-pull-request:
    name: PullRequestAction
    runs-on: ubuntu-latest
    steps:
      - name: pull-request-action
        uses: vsoch/pull-request-action@add/reviewers
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          BRANCH_PREFIX: "update/"
          PULL_REQUEST_BRANCH: "master"
          PULL_REQUEST_REVIEWERS: vsoch

After merge and release, this will be version 1.0.4. The testing branch is this one, add/reviewers, as shown in the recipe above. The variable for team reviewers is PULL_REQUEST_TEAM_REVIEWERS.