Skip to content

Add mattermost service support - #342

Merged
gpocentek merged 1 commit into
python-gitlab:masterfrom
matejzero:mattermost
Nov 7, 2017
Merged

Add mattermost service support#342
gpocentek merged 1 commit into
python-gitlab:masterfrom
matejzero:mattermost

Conversation

@matejzero

Copy link
Copy Markdown
Contributor

Add support for mattermost service.

I hope this is all I need to do:)

@gpocentek gpocentek left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread gitlab/v3/objects.py

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Issue is fixed in GitLab.

@gpocentek

Copy link
Copy Markdown
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.

2 participants