close
The Wayback Machine - https://web.archive.org/web/20201205055120/https://github.com/github/github-services/pull/958
Skip to content
This repository has been archived by the owner. It is now read-only.

Add the ability to filter twitter updates by branch #958

Merged
merged 7 commits into from Nov 24, 2014

Conversation

@domenic
Copy link

@domenic domenic commented Oct 27, 2014

+1 <3

@@ -11,4 +11,6 @@ commit list, instead of tweeting all commits individually with their message and
Check "Short format" to omit the repository and commiter's names from the tweet to get more
space for the commit message.

If you would like to restrict to a branch then add the name, otherwise blank means 'all'.

This comment has been minimized.

@domenic

domenic Oct 27, 2014

Add the name where?

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Oct 27, 2014

@domenic updated, thanks.

filter_branch = data['filter_branch'].to_s

# If filtering by branch then don't make a post
if (filter_branch.length > 0) && (filter_branch.index(commit_branch) == nil)

This comment has been minimized.

@kdaigle

kdaigle Nov 6, 2014
Member

Could you please add a test for this? Thanks!

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Nov 7, 2014

Two tests added

@@ -11,4 +11,6 @@ commit list, instead of tweeting all commits individually with their message and
Check "Short format" to omit the repository and commiter's names from the tweet to get more
space for the commit message.

If you would like to restrict to a branch then add the name to the 'filter branch' field, otherwise blank means 'all'.

This comment has been minimized.

@kdaigle

kdaigle Nov 14, 2014
Member

Heh, same feedback here as in #966 (comment). 😀

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Nov 14, 2014

Updated :)

kdaigle added a commit that referenced this pull request Nov 24, 2014
Add the ability to filter twitter updates by branch
@kdaigle kdaigle merged commit 0dbb8d0 into github:master Nov 24, 2014
@kdaigle
Copy link
Member

@kdaigle kdaigle commented Nov 24, 2014

Thanks! This will be deployed in the next few days. 🍰

@domenic
Copy link

@domenic domenic commented Nov 28, 2014

I tried configuring this, but I don't see the filter branch option referred to in

If you would like to only receive messages for a specific branch, add the name (or partial name) to
the "Filter branch" option. Otherwise, leave the field blank to receive messages for all branches.

no filter branch

@lloydwatkin lloydwatkin deleted the lloydwatkin:patch-1 branch Nov 28, 2014
@domenic
Copy link

@domenic domenic commented Dec 2, 2014

@lloydwatkin @kdaigle anything I'm missing? Very confused as to what is going on here ... I was excited about using this feature.

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Dec 2, 2014

@domenic I think the UI hasn't been updated to match the new functionality. Nothing I can do I'm afraid.

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Dec 2, 2014

Maybe @technoweenie has time to look at this?

@domenic
Copy link

@domenic domenic commented Dec 2, 2014

Oh, interesting, I was wondering how the UI worked. I was hoping it was auto-generated from the field definitions, since I didn't see any code for it in this repo... sounds like maybe it's just hosted in some private repo somewhere. Eek.

@kdaigle
Copy link
Member

@kdaigle kdaigle commented Dec 2, 2014

@lloydwatkin ah, it looks like you missed defining a string :filter_branches in the service. You need to define it if you want it to show up in the UI. Can you open a new PR for that?

@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Dec 2, 2014

@kdaigle oh, I do apologise! Will get a PR in immediately.

lloydwatkin added a commit to lloydwatkin/github-services that referenced this pull request Dec 2, 2014
@lloydwatkin
Copy link
Contributor Author

@lloydwatkin lloydwatkin commented Dec 2, 2014

See #996

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.