Switch docker upgrade script to submit issue rather than PR
Closes gh-20976pull/22089/head
parent
c98fe51914
commit
fd14c4e72a
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ -f commit-details/message ]]; then
|
||||
ISSUE_TITLE="$(cat commit-details/message)"
|
||||
curl \
|
||||
-s \
|
||||
-u ${GITHUB_USERNAME}:${GITHUB_PASSWORD} \
|
||||
-H "Content-type:application/json" \
|
||||
-d "{\"head\":\"${BRANCH}\",\"base\":\"${BASE_BRANCH}\",\"title\":\"${ISSUE_TITLE}\",\"body\":\"\",\"labels\":[\"status: waiting-for-triage\",\"type: task\"]}" \
|
||||
-f \
|
||||
-X \
|
||||
POST "https://api.github.com/repos/${GITHUB_ORGANIZATION}/${GITHUB_REPO}/pulls" > /dev/null || { echo "Failed to create pull request" >&2; exit 1; }
|
||||
else
|
||||
echo "Already up-to-date."
|
||||
fi
|
@ -1,14 +0,0 @@
|
||||
---
|
||||
platform: linux
|
||||
inputs:
|
||||
- name: git-repo
|
||||
- name: commit-details
|
||||
params:
|
||||
BASE_BRANCH:
|
||||
BRANCH:
|
||||
GITHUB_REPO:
|
||||
GITHUB_ORGANIZATION:
|
||||
GITHUB_PASSWORD:
|
||||
GITHUB_USERNAME:
|
||||
run:
|
||||
path: git-repo/ci/scripts/create-pull-request.sh
|
Loading…
Reference in New Issue