Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Conversation

@DanielDraganov
Copy link
Contributor

The branch filtering logic depends on the 'ref' property of the payload.
:issues and :issue_comment events do not have such a property and the service was failing.

Copy link
Member

Choose a reason for hiding this comment

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

Should you be testing both of these in a separate test? One for the push event and one for the issue event?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created two tests because the cases are different.
For the push case, we check that when a branch filter is applied the test will pass for the provided repo ref.
For the issue event we don't provide a "ref" property in the payload(which was the reason the service was failing) and I check this in a separate test case.

kdaigle added a commit that referenced this pull request Feb 4, 2015
Fix: Kanbanize service fails for :issues and :issue_comment events
@kdaigle kdaigle merged commit bafe967 into github:master Feb 4, 2015
@kdaigle
Copy link
Member

kdaigle commented Feb 4, 2015

Thanks! 🍰 This will go out later today.

@DanielDraganov
Copy link
Contributor Author

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants