Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Conversation

@akarataev
Copy link
Contributor

I've implemented a haptic handler for a successful and unsuccessful merge results.

Copy link
Collaborator

@Huddie Huddie left a comment

Choose a reason for hiding this comment

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

Looks good. We're you able to test this or just assuming it should work properly?

@Huddie Huddie added 🏁 ready to pull Pull Request is ready to merge trivial and removed 🏁 ready to pull Pull Request is ready to merge labels Mar 13, 2019
@akarataev
Copy link
Contributor Author

@Huddie,

I tested this feature on a test repository before sending PR.
Everything worked well.

@Huddie Huddie added the 🏁 ready to pull Pull Request is ready to merge label Mar 13, 2019
Copy link
Collaborator

@BasThomas BasThomas left a comment

Choose a reason for hiding this comment

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

Nice, two tiny things!

number: Int,
type: IssueMergeType,
error: @escaping () -> Void
completionHandler: @escaping (Bool) -> Void
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a label to this tuple, like @escaping (success: Bool) -> Void? That makes it a bit easier to understand what the Bool is referring to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BasThomas yes, you can.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for bad english 😅
Do you want to fix it yourself or so that I fix it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want to fix it, go for it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All is ready

error: { [weak self] in
self?.loading = false
self?.update(animated: true)
completionHandler: { [weak self] isSuccessMerge in
Copy link
Collaborator

Choose a reason for hiding this comment

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

Super-nit: isSuccessfulMerge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it would be better

@akarataev akarataev force-pushed the 2668-haptics-for-merge-results branch from ff6857b to eb8d2f2 Compare March 14, 2019 18:33
number: Int,
type: IssueMergeType,
error: @escaping () -> Void
completionHandler: @escaping (_ success: Bool) -> Void
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you ignore it still? That wouldn't help to understand it at the call site 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BasThomas functional type can't have a argument label. If you ask about it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah.

@BasThomas BasThomas merged commit f1882b8 into GitHawkApp:master Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🏁 ready to pull Pull Request is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants