Automate Docker updates in CI

See gh-20530
This commit is contained in:
dreis2211
2020-03-15 15:27:08 +01:00
committed by Madhura Bhave
parent 88b7b78344
commit 4752d7e91a
8 changed files with 124 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
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; }