Skip to content

Commit

Permalink
Ping cross-track maintainers for maintained-solitary repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Sep 4, 2024
1 parent c7b1c6e commit 3c11b49
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ping-cross-track-maintainers-team.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ jobs:
steps:
- name: Check if repo is unmaintained
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
id: is-unmaintained
id: ping-cross-track-maintainers
with:
script: |
const response = await github.rest.repos.getAllTopics({
owner: context.repo.owner,
repo: context.repo.repo,
});
return response.data.names.includes('unmaintained');
return response.data.names.includes('unmaintained') ||
response.data.names.includes('maintained-solitary');
- name: Check if user is cross-track maintainer
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
id: is-cross-track-maintainer
if: steps.is-unmaintained.outputs.result == 'true'
id: author-is-cross-track-maintainer
if: steps.ping-cross-track-maintainers.outputs.result == 'true'
with:
github-token: ${{ secrets.github_membership_token || secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -47,7 +48,7 @@ jobs:
.catch(err => false);
- name: Create comment
if: steps.is-unmaintained.outputs.result == 'true' && steps.is-cross-track-maintainer.outputs.result == 'false'
if: steps.ping-cross-track-maintainers.outputs.result == 'true' && steps.author-is-cross-track-maintainer.outputs.result == 'false'
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script: |
Expand Down

0 comments on commit 3c11b49

Please sign in to comment.