Skip to content

julienherrero/gh-reviews-count

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-reviews-count

This action tries to get the pull request reviews count by state kind.

Usage

    steps:
      - uses: actions/checkout@v2
      # Get the reviews count by state kind.
      - uses: github-actions-tools/[email protected]
        id: reviewsCount
      - run: echo "The approved reviews count is ${REVIEWS}"
        if: success() && steps.reviewsCount.outputs.approved
        env:
          REVIEWS: ${{ steps.reviewsCount.outputs.approved }}

Inputs

NAME DESCRIPTION REQUIRED DEFAULT
github-token The GitHub token used to create an authenticated client. Defaults to github provided token. false ${{ github.token }}
owner The GitHub repo owner. Defaults to github current repo owner. false ${{ github.repository_owner }}
pull_number The GitHub pull request number. Defaults to github current pull request number. false ${{ github.event.issue.number }}
repo The GitHub repo name. Defaults to github current repo name. false ${{ github.event.repository.name }}

Outputs

NAME DESCRIPTION REQUIRED DEFAULT
approved Changes proposed in the pull request are approved to merge.
changes_requested Feedbacks has been submited must be addressed before the pull request can be merged.
commented General feedbacks without explicitly approving the changes or requesting additional changes.
pending Reviews have been requested which is pending.
dismissed Pull request reviews dismissed.

About

🧮 Get Pull Request Reviews approvals counts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%