Skip to content

Commit

Permalink
Merge branch 'maintainer-approved-check' into minor-change
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Nov 28, 2023
2 parents a528de8 + 2dbd4e4 commit 9c753f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/maintainer-approved.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@ on:

jobs:
maintainer-approved-check:
runs-on: ubunut-latest
runs-on: ubuntu-latest
steps:
- id: find-maintainers
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const maintainersList = await github.request('GET GET /repos/{owner}/{repo}/collaborators', {
owner: 'OWNER',
repo: 'REPO',
repository_id: 'my-repoid',
const maintainersResponse = await github.request('GET /repos/{owner}/{repo}/collaborators', {
owner: 'peternied',
repo: 'OpenSearch-1',
permission: 'maintain',
affiliation: 'all',
per_page: 100
});
console.log(JSON.stringify(maintainersList));
return "a, b, c"
return maintainersResponse.data.map(item => item.login).join(', ');
- uses: peternied/approved-by-maintainers@main
with:
Expand Down

0 comments on commit 9c753f1

Please sign in to comment.