Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Move repo_user/name parsing to webhook_json_parser #14

Merged
merged 1 commit into from
Nov 2, 2017

Conversation

alexjfisher
Copy link
Member

No description provided.

@data['repository']['name']
end
# TODO: Bitbucket, Stash/Bitbucket Server, Gitlab, TFS
nil
Copy link
Member

Choose a reason for hiding this comment

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

This should be in an else branch of the case statement. Same for repo_user below.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what I started with, but rubocop hates me. Redundant 'else'-clause

Copy link
Member Author

Choose a reason for hiding this comment

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

They can be used as the 'prefix'

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, it was obviously wrong before unless I added some returns.

Copy link
Member

@dhollinger dhollinger left a comment

Choose a reason for hiding this comment

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

See @ekohl's comment

@dhollinger dhollinger merged commit 5d6d3c8 into voxpupuli:master Nov 2, 2017
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.

3 participants