Skip to content
user-check

GitHub Action

ApproverBot - Approvals in IssueOps

v2 Latest version

ApproverBot - Approvals in IssueOps

user-check

ApproverBot - Approvals in IssueOps

IssueOps (ChatOps) workflows that require Approvals from someone in a designated GitHub team

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ApproverBot - Approvals in IssueOps

uses: pdehlke/approveops@v2

Learn more about this action in pdehlke/approveops

Choose a version

ApproveOps

Approvals in IssueOps

Heavily based on https://github.com/joshjohanning/approveops

See the following guide on this action: https://josh-ops.com/posts/github-approveops/

Usage

- name: ApproveOps - ApproveOps in IssueOps
  uses: pdehlke/approveops@v2
  id: check-approval
  with:
    app-id: 170284
    app-private-key: ${{ secrets.PRIVATE_KEY }}
    team-name: approver-team
    fail-if-approval-not-found: false

Prerequisites

  1. Create a GitHub team and add at least one member
  2. You will need a Github App with the following permissions:
    • read-only on Organization / Members to list the members of the team
    • read & write on Repository / Issues to create the comment
  3. Generate a PRIVATE_KEY for the GitHub app and store it as a repo or organizational secret
  4. Capture the APP ID to use as an input for this action

See the following guide on creating a GitHub app: https://josh-ops.com/posts/github-apps/