You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
526 B
Bash
15 lines
526 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ -f commit-details/message ]]; then
|
|
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 |