Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mattermost service support #342

Merged
merged 1 commit into from
Nov 7, 2017

Conversation

matejzero
Copy link
Contributor

Add support for mattermost service.

I hope this is all I need to do:)

Copy link
Contributor

@gpocentek gpocentek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this patch! Please have a look at my comment inline.

@@ -1675,6 +1675,7 @@ class ProjectService(GitlabObject):

# Optional fields
'username', 'password', 'jira_issue_transition_id')),
'mattermost': (('webhook',), ('username', 'channel')),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find references to username and channel in the gitlab documentation and code. Is this really supported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at services API, it looks like username and channel are optional fields.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I guess I missed it.

@gpocentek gpocentek merged commit 82897b7 into python-gitlab:master Nov 7, 2017
@matejzero matejzero deleted the mattermost branch November 7, 2017 12:01
@matejzero
Copy link
Contributor Author

It seems like this is not working, but the problem is in GitLab. At the moment, even if we send username / channel parameters to GitLab, they are not set. Strange, since it's documented in docs.

I opened an issue on gitlab.

@matejzero
Copy link
Contributor Author

Issue is fixed in GitLab.

@gpocentek
Copy link
Contributor

Thanks for the feedback @matejzero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants