Skip to content

Commit

Permalink
Merge pull request #96 from zextras/devel-to-release-20240820
Browse files Browse the repository at this point in the history
Devel to release 20240820
  • Loading branch information
CMazzilli authored Aug 21, 2024
2 parents 90d0479 + fba5165 commit 50c32f3
Show file tree
Hide file tree
Showing 6 changed files with 297 additions and 253 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx commitlint --edit $1
commitlint --edit $1
32 changes: 32 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,38 @@ pipeline {
}
}
}
stage('Open release to devel pull request') {
when {
beforeAgent true
allOf {
expression { isReleaseBranch == true }
}
}
steps {
script {
catchError(buildResult: "UNSTABLE", stageResult: "FAILURE") {
String versionBumperBranchName = "version-bumper/${getLastTag()}"
sh(script: """#!/bin/bash
git push origin HEAD:refs/heads/${versionBumperBranchName}
""")
withCredentials([usernamePassword(credentialsId: 'tarsier-bot-pr-token-github', usernameVariable: 'GH_USERNAME', passwordVariable: 'GH_TOKEN')]) {
sh(script: """
curl https://api.github.com/repos/${getRepositoryName()}/pulls \
-X POST \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Authorization: token ${GH_TOKEN}' \
-d '{
\"title\": \"chore(release): ${getLastTag()}\",
\"head\": \"${versionBumperBranchName}\",
\"base\": \"devel\",
\"maintainer_can_modify\": true
}'
""")
}
}
}
}
}
}
}

2 changes: 1 addition & 1 deletion examples/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 50c32f3

Please sign in to comment.