SNOW-1665697: add open_new_result in document API #3337
Workflow file for this run
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: Request Local Testing approval if necessary | |
on: | |
pull_request: | |
branches: '**' | |
jobs: | |
request_review: | |
if: ${{!contains(toJSON(github.event.pull_request.requested_teams), 'local-testing')}} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Request Local Testing review if PR contains local_testing_mode | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
url: ${{ github.event.pull_request.html_url }} | |
run: | | |
(gh pr diff "$url" | grep "^+" | grep "local_testing_mode" && gh pr comment "$url" --body "Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing") || echo "PR does not seem to contain Local Testing changes" |