Validate localized SqlClient resources in OneBranch builds #160
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: Notify Author attention needed | |
| on: | |
| pull_request_target: | |
| types: [labeled] | |
| jobs: | |
| notify-author: | |
| # Only run when 'Author attention needed' label is added to a PR | |
| if: >- | |
| github.repository == 'dotnet/SqlClient' && | |
| github.event.label.name == 'Author attention needed' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Post comment to PR author | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const issue_number = context.payload.pull_request.number; | |
| const owner = context.repo.owner; | |
| const repo = context.repo.repo; | |
| const author = context.payload.pull_request.user.login; | |
| const body = `@${author} This pull request has been marked as **Author attention needed**.\n\nWhen you have addressed the reviewer feedback and are ready for another review, please post a comment with \`/ready\` to remove the label and re-engage reviewers.`; | |
| await github.rest.issues.createComment({ | |
| owner, | |
| repo, | |
| issue_number, | |
| body, | |
| }); | |
| core.info(`Posted notification comment on PR #${issue_number}`); |