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

Detect Pull Request id automatically if not specified #38

Merged
merged 1 commit into from
Oct 15, 2014

Conversation

mmozuras
Copy link
Member

@willnet I'm kinda stealing a bit of your idea/code here, so want to make sure you're 🆗 with it. Of course, you're given credit in CHANGELOG 😄

@comment_cache["#{repo}/#{pull_id}/#{sha}"] ||= begin
client.pull_comments(repo, pull_id).map do |comment|
pull_id = pull_id(repo)
@comment_cache["#{repo.github_slug}/#{pull_id}/#{sha}"] ||= begin
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to self: repo is used everywhere in this class. Consider refactoring and just making it a constructor param.

@willnet
Copy link

willnet commented Oct 15, 2014

Great! ❤️ ❤️ ❤️

@mmozuras
Copy link
Member Author

@willnet thanks, would not have happened without you! 😄

mmozuras added a commit that referenced this pull request Oct 15, 2014
Detect Pull Request id automatically if not specified
@mmozuras mmozuras merged commit 1d13aaf into master Oct 15, 2014
@mmozuras mmozuras deleted the detect_pr_automatically branch October 15, 2014 05:32
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