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

feat(issue): Disable merge button if not possible #425

Merged
merged 1 commit into from
Oct 8, 2017

Conversation

chinesedfan
Copy link
Member

Fixes #128.

The main idea is to leverage the field mergeable provided by the pull request API. Besides, I refactor a little about the logic of fetching a issue. That's because I want to only fetch pull request if the issue is a pull request. At last, I find out some basic fields are still needed by using the issue API, so I give up the API replacement but keep the refactor.

Copy link
Member

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

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

Looks like we're adding the actual pull request API call which I thought we probably didn't need to until now, but had a feeling we would have to eventually :o

Thanks for this mate 🎉

@housseindjirdeh housseindjirdeh merged commit 310ecdd into gitpoint:master Oct 8, 2017
@chinesedfan chinesedfan deleted the fixmergeable branch October 8, 2017 05:09
@chinesedfan
Copy link
Member Author

@housseindjirdeh The required field mergeable only exists in the actual pull request API.

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.

2 participants