How to get the Dock Band? #133
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: Bug Report Request | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| issues: write | |
| jobs: | |
| request-bug-report: | |
| if: >- | |
| !github.event.issue.pull_request | |
| && github.event.comment.user.type != 'Bot' | |
| && contains(github.event.comment.body, '/bugreport') | |
| && ( | |
| github.event.comment.author_association == 'OWNER' | |
| || github.event.comment.author_association == 'MEMBER' | |
| || github.event.comment.author_association == 'COLLABORATOR' | |
| ) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Post bug report instructions | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const body = [ | |
| 'I need a bit more information to really debug this issue. Can you add a "Submit a Bug Report" zip file here?', | |
| '', | |
| 'Before you generate the bug report, please make sure to reproduce the issue you are having with the extension. This will ensure that the logs contain the relevant information to help me debug the issue.', | |
| '', | |
| 'Then, use the context menu for Weather in Command Palette and go to Submit a Bug Report. Then use the "Save Logs to Desktop" command to save the logs to your desktop. Finally, drag the zip file from your desktop onto the GitHub comment box in this issue.', | |
| '', | |
| '', | |
| '', | |
| 'This will let me review the logs of the extension to see what error is occurring so we can get it working for you. 👍🏼', | |
| ].join('\n'); | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body, | |
| }); | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| labels: ['needs-info'], | |
| }); |