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 support for github.watch messages. #120

Merged
merged 2 commits into from Jul 20, 2014
Merged

Conversation

ralphbean
Copy link
Contributor

No description provided.

@@ -126,6 +128,9 @@ def subtitle(self, msg, **config):
sha = msg['msg']['sha'][:8]
tmpl = self._("{description} for {repo} {sha}")
return tmpl.format(description=description, repo=repo, sha=sha)
elif 'github.watch' in msg['topic']:
tmpl = self._('{user} started watching {repo}')
Copy link
Member

Choose a reason for hiding this comment

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

Is it always started or also stopped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oddly, we only get notified by github of starts... but the payload makes it possible to distinguish with this action field. So, I updated it in 9fbfe37.

@pypingou
Copy link
Member

👍

ralphbean added a commit that referenced this pull request Jul 20, 2014
Add support for github.watch messages.
@ralphbean ralphbean merged commit b65ad6a into develop Jul 20, 2014
@ralphbean ralphbean deleted the feature/github-watch branch July 20, 2014 13:46
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