forked from openconfig/featureprofiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added required approvals workflow * added comment * fixed linting issues and removed unused vars
- Loading branch information
1 parent
3a7bdec
commit 87e8f6d
Showing
2 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow is to make sure we have 1 LGTM for business logic and 1 LGTM for code style | ||
name: PR Approval Workflow | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
check-approvals: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: read | ||
steps: | ||
- name: Check for required approvals | ||
id: check-approvals | ||
uses: skymoore/required-approvals@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
read_org_scoped_token: ${{ secrets.READ_ORG_SCOPED_TOKEN }} | ||
org_name: openconfig | ||
min_approvals: 2 | ||
approval_mode: ALL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters