mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-03 13:21:41 +02:00
Add githubCreatePullRequest.groovy (#3706)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
c5b83de7e1
commit
8768d2bb74
@ -147,6 +147,7 @@ public class CommonStepsTest extends BasePiperTest{
|
||||
'runClosures',
|
||||
'checkmarxExecuteScan', //implementing new golang pattern without fields
|
||||
'githubCreateIssue', //implementing new golang pattern without fields
|
||||
'githubCreatePullRequest', //implementing new golang pattern without fields
|
||||
'githubPublishRelease', //implementing new golang pattern without fields
|
||||
'githubCheckBranchProtection', //implementing new golang pattern without fields
|
||||
'githubCommentIssue', //implementing new golang pattern without fields
|
||||
|
11
vars/githubCreatePullRequest.groovy
Normal file
11
vars/githubCreatePullRequest.groovy
Normal file
@ -0,0 +1,11 @@
|
||||
import groovy.transform.Field
|
||||
|
||||
@Field String STEP_NAME = getClass().getName()
|
||||
@Field String METADATA_FILE = 'metadata/githubCreatePullRequest.yaml'
|
||||
|
||||
void call(Map parameters = [:]) {
|
||||
List credentials = [
|
||||
[type: 'token', id: 'githubTokenCredentialsId', env: ['PIPER_token']]
|
||||
]
|
||||
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user