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

Pullrequestmerged #936

Closed
wants to merge 6 commits into from
Closed

Pullrequestmerged #936

wants to merge 6 commits into from

Conversation

poisonous-milk
Copy link
Contributor

#867.

Set Merged to be Merged||MergedAt.HasValue. Merged is not always FALSE anymore.

@@ -34,7 +34,7 @@ public PullRequest(Uri url, Uri htmlUrl, Uri diffUrl, Uri patchUrl, Uri issueUrl
Base = @base;
User = user;
MergeCommitSha = mergeCommitSha;
Merged = merged;
Merged = merged || MergedAt.HasValue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's completely remove the merged constructor parameter. Merged will be a calculated property. So this should be Merged = MergedAt.HasValue.

@shiftkey shiftkey mentioned this pull request Oct 28, 2015
@ryangribble
Copy link
Contributor

Howdy folks, I was just digging into this issue myself (merged always being false on all pull request, even those that have been merged) and came across this PR as well as 2 issues and some other PRs etc. It seems in the various shuffling that change Merged field to be a calculated field hasnt actually made it through

Is the best course of action for someone to submit a new PR or can this current one be updated and merged in? If you want me to do it let me know. In the meantime I can obviously use the workaround of pr.MergedAt.HasValue

Cheers

@haacked
Copy link
Contributor

haacked commented Dec 2, 2015

This PR appears to be abandoned. I'm opening up a new one #970 to supersede this one.

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.

3 participants