Skip to content

Commit 1e2d904

Browse files
committed
ci: use target branch filter on pull request feature
1 parent 602511a commit 1e2d904

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.teamcity/builds/Common.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ fun BuildFeatures.enablePullRequests() = pullRequests {
185185
provider = github {
186186
authType = token { token = "%github-pull-request-token%" }
187187
filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY
188+
filterTargetBranch = "+:refs/heads/$DEFAULT_BRANCH"
188189
}
189190
}
190191

.teamcity/settings.kts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,7 @@ project {
5959
neo4jVersions = setOf(Neo4jVersion.V_4_4, Neo4jVersion.V_5, Neo4jVersion.V_2025),
6060
forPullRequests = true,
6161
) {
62-
triggers {
63-
vcs {
64-
this.branchFilter =
65-
"""
66-
+:$DEFAULT_BRANCH
67-
+:pull/*
68-
"""
69-
.trimIndent()
70-
}
71-
}
62+
triggers { vcs { this.branchFilter = "+:pull/*" } }
7263
},
7364
)
7465

0 commit comments

Comments
 (0)