File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ version = "2022.10"
2424
2525project {
2626 buildType(GroovyMC_CommonGroovyLibrary_Build )
27+ buildType(GroovyMC_CommonGroovyLibrary_PullRequests )
2728}
2829
2930object GroovyMC_CommonGroovyLibrary_Build : BuildType({
@@ -74,4 +75,41 @@ object GroovyMC_CommonGroovyLibrary_Build : BuildType({
7475 tasks = " publish"
7576 }
7677 }
78+ })
79+
80+ object GroovyMC_CommonGroovyLibrary_PullRequests : BuildType({
81+ id("PullRequests ")
82+ name = " PullRequests"
83+
84+ vcs {
85+ root(DslContext .settingsRoot)
86+ }
87+
88+ features {
89+ swabra {
90+ filesCleanup = Swabra .FilesCleanup .BEFORE_BUILD
91+ lockingProcesses = Swabra .LockingProcessPolicy .KILL
92+ }
93+ commitStatusPublisher {
94+ publisher = github {
95+ githubUrl = " https://api.github.com"
96+ authType = personalToken {
97+ token = " %commit_status_publisher%"
98+ }
99+ }
100+ }
101+ pullRequests {
102+ provider = github {
103+ authType = vcsRoot()
104+ filterAuthorRole = PullRequests .GitHubRoleFilter .EVERYBODY
105+ }
106+ }
107+ }
108+
109+ steps {
110+ gradle {
111+ name = " Build Gradle Project"
112+ tasks = " build"
113+ }
114+ }
77115})
You can’t perform that action at this time.
0 commit comments