Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct VCS Username settings with Github so that "My Changes" works correctly?

I have a TeamCity continuous build process setup for a personal GitHub project which works well. However, in TeamCity I want to see a list of commits under "My Changes" (http://teamcity/changes.html).

Under "VCS Username Settings" (http://teamcity/vcsSettings.html) I have set the username as "benpowell" to match my Github account and as you can see all commits are logged under that name. However, none of the commits are logged under "My Changes".

Any ideas why?

like image 840
Rebecca Avatar asked Feb 15 '12 14:02

Rebecca


2 Answers

One note that might help is that TeamCity has a "Username style" setting under the VCS root itself. For a new installation of TeamCity 9.0.1, it defaulted to just "Userid". I had to go in and change it to "Author Email". Note - this setting is hidden under "advanced options".

Per the screen, it will only affect newly collected changes from source.

Once this is done, you should be able to use email addresses under VCS Username successfully.

See the screenshot for more details on this setting:

enter image description here

like image 181
David Mohundro Avatar answered Nov 15 '22 12:11

David Mohundro


To find the correct VCS username open up TeamCity and view your build. Under Recent History you'll see a column that is called Changes, which links to the commit/push that triggered the build (if you have continuous integration setup).

The username is shown there as seen below in the screenshot:

Notably, the username does appear to be linked to my email address. It is the username part of my Gmail address. I'm assuming Github extracted that, because I wouldn't have chosen that username personally.

like image 30
Rebecca Avatar answered Nov 15 '22 11:11

Rebecca