Add workflows to ping about play reviews

This commit is contained in:
Keunes 2024-05-10 16:16:05 +02:00
parent 59c5042a65
commit d455323ca8
2 changed files with 50 additions and 0 deletions

35
.github/workflows/release-actions.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Release actions
on:
release:
types: released
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: "Tag review replyers in closed issues with 'Needs: Review reply' label"
uses: actions/github-script@v7
with:
script: |
const issue_number = context.issue.number;
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'closed',
labels: ['Needs: Review reply']
});
if (issues.length > 0) {
for (const issue of issues) {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body: 'This feature or fix is now released! @AntennaPod/review-replyers, time to inform relevant reviews in Google Play console (please see links in one or more of the comments above).'
});
}
} else {
console.log('No closed issues with label "Needs: Review reply" found.');
}

15
.github/workflows/review-link-label.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Label issues with comments containing review links
on:
issue_comment:
types: [created, edited]
jobs:
add_label:
name: Add label
if: ${{ contains(github.event.comment.body, 'https://play.google.com/apps/publish?account=8008695526664634386#ReviewDetailsPlace:p=de.danoeh.antennapod&reviewid=') || contains(github.event.comment.body, 'https://play.google.com/console/u/0/developers/8008695526664634386/app/4974638472012894302/user-feedback/review-details?reviewId=') }}
runs-on: ubuntu-latest
steps:
- name: Apply label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'Needs: Review reply'