Skip to content

Commit e8bca2a

Browse files
committed
ci: use target branch filter on pull request feature
1 parent bcf06ad commit e8bca2a

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
@@ -190,6 +190,7 @@ fun BuildFeatures.enablePullRequests() = pullRequests {
190190
provider = github {
191191
authType = token { token = "%github-pull-request-token%" }
192192
filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY
193+
filterTargetBranch = "+:refs/heads/$DEFAULT_BRANCH"
193194
}
194195
}
195196

.teamcity/settings.kts

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

0 commit comments

Comments
 (0)