Youtrack and GitHub service hook

I tried playing around with the service hook to parse git commit comments and changine issues and so on.

My git commit comment looks like "#ab-123 fixed". But nothing happens.

At github it's says that the test hook gets deployed. 

Don't really know how to procced. I can't find any errors/warning/info in the logs for youtrack.

Any ideas?

..fredrik

0
10 comments
Avatar
Permanently deleted user

Hello, Fredrik.

Did you enabled rest api in your YouTrack Installation?

Also, ensure please that the user, that user, that made push into git has the same email as youtrack user, as we match users by email.

0

Thanks for your quick response!

Yes, I have the same email address on both accounts and the rest-api is enabled.

Is it the github username that suppose to be set inte "commiters" on github?

0
Avatar
Permanently deleted user

Do you mean "commiters" field, when you set up github service hook?

If so, it should be a name of group in YouTrack, that contains users, you want to be able to execute commands from their commits.

0
Avatar
Permanently deleted user

Hi, Fredrik.

Suddenly, we found that GIT takes #-sign at the beginning of the line as a start of comment. We'll do something with this problem. But for now try to add a space before #-sign as a workaround.

PS It is an issue for the merge from command line cases.

0

Found what to be placed in commiters (well, it's on the github page just had to read).

And it solved the porblem!

0
Hi there, I know this is an old tread, but I'll try to get some info here first before starting a new thread. I've got my github set up as instructed, but nothing happens on committing with the #tag. Is there anything else I could check? Besides:

using the same email address
being in a committers group I've made and assigned in github
use a space before the #
0
Avatar
Permanently deleted user
Hello, Robin!
Could you please tell me, what commit comment are you trying to apply?
0
Hello Anna,

I'm trying to apply the following commit comment:

#CVM-13 fixed

where CVM-13 is a test issue I made.
0
Avatar
Permanently deleted user
Robin, comment itself looks good. To figure out what is the problem with integration I need to see YouTrack logs. If you are using InCloud YouTrack you can just tell me your instance name (or email it to youtrack-incloud-support@jetbrains.com) and I'll check its logs myself. If you are using standalone YouTrack, you'll need to send me .logs folder.
0
Hello Anna,

I've send you an email with my instance name.

Thank you.
0

Please sign in to leave a comment.