Bump google.golang.org/protobuf from 1.28.0 to 1.33.0 in /tools in the go_modules group across 1 directory #1
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: Add review template | |
# **What it does**: When a specific label is added to a PR, adds the contents of .github/review-template.md as a comment in the PR | |
# **Why we have it**: To help PCX ensure that their PR is ready for review | |
# **Who does it impact**: PCX team | |
on: | |
pull_request: | |
types: | |
- labeled | |
permissions: | |
contents: read | |
jobs: | |
add-template: | |
name: Add review template | |
runs-on: ubuntu-latest | |
if: github.event.label.name == 'pcx_team_review' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin @3.5.2 | |
# Jump through some hoops to work with a multi-line file | |
- name: Store review template in variable | |
run: | | |
TEMPLATE=$(cat .github/review-template.md) | |
echo "TEMPLATE<<EOF" >> $GITHUB_ENV | |
echo "$TEMPLATE" >> $GITHUB_ENV | |
echo "EOF" >> $GITHUB_ENV | |
- name: Comment on the PR | |
run: | | |
gh pr comment $PR --body "$TEMPLATE" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR: ${{ github.event.pull_request.html_url }} | |
TEMPLATE: ${{ env.TEMPLATE }} |