Skip to content

Commit

Permalink
Merge remote-tracking branch 'peternied/main' into minor-change
Browse files Browse the repository at this point in the history
  • Loading branch information
peternied committed Nov 28, 2023
2 parents 9c753f1 + ee6ac73 commit e81b290
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/maintainer-approved.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check if maintainers have approved this PR
name: Maintainers approval

on:
pull_request_review:
Expand All @@ -9,6 +9,7 @@ on:

jobs:
maintainer-approved-check:
name: Minimum approval count
runs-on: ubuntu-latest
steps:
- id: find-maintainers
Expand All @@ -17,9 +18,10 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
// Get the collaborators - filtered to maintainer permissions
const maintainersResponse = await github.request('GET /repos/{owner}/{repo}/collaborators', {
owner: 'peternied',
repo: 'OpenSearch-1',
owner: context.repo.owner,
repo: context.repo.repo,
permission: 'maintain',
affiliation: 'all',
per_page: 100
Expand Down

0 comments on commit e81b290

Please sign in to comment.