Deleted message remains visible in message list #1233
This file contains hidden or 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 answered label | |
| on: | |
| issues: | |
| types: | |
| - labeled | |
| permissions: | |
| issues: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: | | |
| contains(github.event.issue.labels.*.name, 'status: needs information') && | |
| contains(github.event.issue.labels.*.name, 'status: answered') | |
| environment: botmobile | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: App token generate | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| if: ${{ vars.BOT_CLIENT_ID }} | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.BOT_PRIVATE_KEY }} | |
| - name: Remove answered label if both exist | |
| env: | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| GH_TOKEN: ${{ steps.app-token.outputs.token || github.token }} | |
| run: | | |
| gh issue edit $ISSUE_NUMBER --repo "$GITHUB_REPOSITORY" --remove-label "status: answered" |