Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

fix(invite-collaborator): only create comment if invitation succeeds #71

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

sidharthachatterjee
Copy link
Contributor

Currently, our bot creates a comment on a merged pull request even if inviting the user fails (happens when the user is a bot)

See an instance of this in gatsbyjs/gatsby#11432

This PR fixes this and adds a test asserting this behaviour

Fixes #70

@sidharthachatterjee
Copy link
Contributor Author

sidharthachatterjee commented Jan 31, 2019

Running Prettier on the entire repo and rebasing this. Hold on, please.

Edit: Merge #72 first so that diffs are more readable

@sidharthachatterjee sidharthachatterjee force-pushed the fix/do-not-comment-if-inviting-a-user-failed branch from b093ae2 to de987a6 Compare January 31, 2019 15:22
@sidharthachatterjee sidharthachatterjee force-pushed the fix/do-not-comment-if-inviting-a-user-failed branch from de987a6 to 18a1fbe Compare January 31, 2019 15:23
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

👍 Thanks!

@pieh pieh merged commit 040b5b8 into master Jan 31, 2019
@pieh pieh deleted the fix/do-not-comment-if-inviting-a-user-failed branch January 31, 2019 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exclude bots from being added automatically to contributors
2 participants