0

I'm using TC 9.0 with Git. I would like to setup VCS Triggers for all pull requests merges only. I've tried with VCS Trigger Rules:

-:**
+:comment=^Merge pull request:**

but with no luck so far (it didn't caught any change no matter of commit message).

Any ideas what I'm doing wrong?

Marek
  • 1,688
  • 1
  • 29
  • 47

2 Answers2

2

Try to set internal property teamcity.vcsTrigger.analyzeFullHistoryForMergeCommits=false. For more details see the comment in TeamCity issue tracker.

Alina Mishina
  • 3,320
  • 2
  • 22
  • 31
1

Try

+:refs/pull/*/merge

You can find more information over here

Shishir
  • 780
  • 4
  • 9
  • But this assumes that all merges are made on 'pull/...' branches which is not true in my case – Marek Apr 23 '16 at 17:17