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

Protect merge commit fix by ref id #43

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

jkrems
Copy link
Collaborator

@jkrems jkrems commented Oct 4, 2018

This should handle cases where there's multiple references in the commit message and should ensure that the thing we overwrite is the PR reference.

Follow-up to #42

let mergeRef = data.references.find(ref => {
return ref.issue === prId;
});
if (mergeRef === null) {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be === undefined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops!

@jkrems jkrems force-pushed the jkrems/feature/master/safe-merge-merge branch from 9abc433 to d221f43 Compare October 4, 2018 18:14
@jkrems jkrems force-pushed the jkrems/feature/master/safe-merge-merge branch from d221f43 to 0b5d1a6 Compare October 4, 2018 18:17
@jkrems jkrems merged commit ff16a28 into master Oct 4, 2018
@jkrems jkrems deleted the jkrems/feature/master/safe-merge-merge branch October 4, 2018 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants