[Class] Microsoft Internal Test Environment #87
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: Process Issue Comment | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| permissions: | |
| contents: write | |
| id-token: write | |
| issues: write | |
| jobs: | |
| comment: | |
| name: Process Issue Comment | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event.issue.state == 'open' && | |
| ( | |
| startsWith(github.event.comment.body, '.add-user') || | |
| startsWith(github.event.comment.body, '.remove-user') | |
| ) && | |
| contains(github.event.issue.labels.*.name, 'gh-intermediate-class') && | |
| contains(github.event.issue.labels.*.name, 'provisioned') | |
| steps: | |
| - name: Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| - name: Get GitHub App Token | |
| id: token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.ISSUEOPS_APP_ID }} | |
| private-key: ${{ secrets.ISSUEOPS_APP_PEM_FILE }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Process IssueOps Request | |
| id: process | |
| uses: githubschool/gh-github-intermediate-issueops@main | |
| with: | |
| github_token: ${{ steps.token.outputs.token }} | |
| workspace: ${{ github.workspace }} |