Push notifications won't work after importing the settings from K-9 Mail on Android 15 #1444
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Remove needinfo label | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | | |
contains(github.event.issue.labels.*.name, 'status: needs information') && | |
github.event.comment.author_association != 'OWNER' && | |
github.event.comment.author_association != 'MEMBER' && | |
github.event.comment.author_association != 'COLLABORATOR' | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
# https://github.com/octokit/request-action/issues/118 | |
- name: Remove needinfo label | |
run: | | |
curl --request DELETE \ | |
--url 'https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels/status%3A%20needs%20information' \ | |
--header 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' | |
- name: Add answered label | |
run: | | |
curl --request POST \ | |
--url 'https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels' \ | |
--header 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \ | |
--header 'Content-Type: application/json' \ | |
--data '{"labels": ["status: answered"]}' |