Add workflows to ping about play reviews
This commit is contained in:
parent
59c5042a65
commit
d455323ca8
|
@ -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.');
|
||||
}
|
||||
|
|
@ -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'
|
Loading…
Reference in New Issue