Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
  • Loading branch information
NicoPrediger committed Jun 23, 2021
1 parent e0a100d commit a41971d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion releng/jenkins/bot-updates/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,17 @@ pipeline {
"""
}

echo "${PR_TITLE}"
echo "${env.PR_TITLE}"

// Create a pull request, but only when there were changes made on the target branch
// see https://developer.github.com/v3/pulls/#create-a-pull-request
if (OPEN_PULL_REQUEST && "${HAS_CHANGES}" != "0") {
env.CREATE_PR_RESULT = sh (
label: "Open Pull Request",
returnStdout: true,
script: '''
curl --verbose -X "POST" -s "https://api.github.com/repos/eclipse/${it}/pulls" \
curl -X "POST" -s "https://api.github.com/repos/eclipse/${it}/pulls" \
-H "Cookie: logged_in=no" -H "Content-Type: text/plain; charset=utf-8" \
-H "Authorization: token $GITHUB_API_TOKEN" \
-d '{"title": "$PR_TITLE", "body": "This change was brought to you by your friendly Xtext Genie.", "maintainer_can_modify": false, "head": "'$TARGET_BRANCH'", "base": "'$SOURCE_BRANCH'" }'
Expand Down

0 comments on commit a41971d

Please sign in to comment.