Skip to content

SiliconLabsSoftware/pullapprove-alt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PullApprove alternative that runs entirely inside GitHub Actions.

it use same .pullapprove.yml configuration, no need to change anything.

Just create a workflow and call the step, eg:

# .github/workflows/code-review.yml
name: Update CR Status
on:
  pull_request_review:
    types: [submitted, edited, dismissed]
  pull_request:
    types: [synchronize, opened]
jobs:
  cr:
    runs-on: ubuntu-latest
    name: Update CR Status
    steps:
      - name: Run CR Status
        uses: mgiachetti/pullapprove-alt@main
        with:
          github-token: ${{ secrets.CR_GITHUB_TOKEN }}

secrets.GITHUB_TOKEN is a Personal access token with this permission:

  • repo
  • read:org (for teams)

features:

  • overrides
    • if
    • status
    • explanation
  • pullapprove_conditions
    • condition
    • unmet_status
    • explanation
  • groups
    • type
      • required
      • optional
    • conditions
    • reviewers
      • users
      • teams
    • reviews
      • required
      • request
      • request_order
      • reviewed_for
    • description
    • labels
    • meta
  • notifications
  • extends
  • github_api_version
  • meta

Conditions:

  • base.ref != 'branch'
  • base.ref == 'branch'
  • 'some-label' in labels
  • 'some-label' not in labels
  • some-cond or some-cond
    • eg: 'some-label' in labels or 'other-label' in labels
  • 'text' in title
  • 'text' not in title
  • '.some-file' in files
  • 'app/*' in files
  • '*.js' in files
  • '*travis*' not in statuses.successful
  • 'global' not in groups.approved
  • not commits.are_signed_off
  • author_association == 'FIRST_TIME_CONTRIBUTOR'
  • len(groups.active) == 0
  • len(groups.active) < 1

About

PullApprove alternative

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%