yaml linting

This commit is contained in:
Joey Orlando 2024-06-05 14:24:04 -04:00
parent e9e55f05b1
commit 3ff8f07b65
No known key found for this signature in database
GPG key ID: 469E88366B17F644

View file

@ -106,19 +106,3 @@ jobs:
with:
github-token: ${{ env.GITHUB_API_KEY }}
number: ${{ steps.find-pull-request.outputs.number }}
# - name: Fetch PRs from GitHub's API
# # yamllint disable rule:line-length
# run: |
# # Step 1. Fetch PRs from GitHub's API that're open and have a particular head ref indicative of a helm release PR
# # API docs - https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests
# # NOTE: ${github.ref_name:1} will slice off the "v" prefix from the tag
# curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $${GITHUB_API_KEY }" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/grafana/oncall/pulls?head=grafana:helm-release/$${GITHUB_REF_NAME}:1}&state=open" > prs.json
# cat prs.json
# # Step 2. Extract the PR number from the first PR in the list to be able to pass that to the next API call
# cat prs.json | jq -r ".[0].number" > pr_number.txt
# cat pr_number.txt
# # Step 3. Merge the PR (https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request)
# cat pr_number.txt | xargs -r -I{pull_number} curl -L -X PUT -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $${{ env.GITHUB_API_KEY }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/grafana/oncall/pulls/{pull_number}/merge"
# # yamllint enable rule:line-length