Skip to content

github-actions-tools/gh-reviews-count

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

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/gh-reviews-count@v0.0.1
        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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published