-
-
Notifications
You must be signed in to change notification settings - Fork 153
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/sync issues status with GitHub webhooks #501
Feat/sync issues status with GitHub webhooks #501
Conversation
@ShubhamCanMakeCommit please check the build failing: |
It is not showing when I run the tests. I will try to solve. Maybe you can tell what might be going wrong. |
Okay, there is a problem in my test. I will solve that. |
You can see that maybe is missing the authorization when calling the webhook from the tests as the following tests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The solution is good! Some improvements to do the update and return the updated model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ShubhamCanMakeCommit Once you returned the update method with the returning parameter, you will no longer need to call a find and you need to change the checks accordingly. Please make the changes and test again, we are almost there ✋
Thanks @ShubhamCanMakeCommit , now we need to notify our users as described on the issue. When update, we should call a new mail function with the following template:
So check the existent mail functions to create new notification templates. You think is possible to do that? |
Oh, yes I forgot about that one. I would do that.
…On Wed, Mar 18, 2020, 9:02 PM Alexandre Magno ***@***.***> wrote:
Thanks @ShubhamCanMakeCommit <https://github.com/ShubhamCanMakeCommit> ,
now we need to notify our users as described on the issue. When update, we
should call a new mail function with the following template:
Hello {{name}},
The issue {{title}} - {{url}} was closed on Github, so we closed on Gitpay.
You can change the issue status if you want.
Thanks,
Gitpay Team
----------------------https://gitpay.me ***@***.*** (Email)
Worknenjoy Inc., 2035 Sunset Lake Road #Suite B-2, Newark, DE 19702 (Mail)
So check the existent mail functions to create new notification templates.
You think is possible to do that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#501 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRHRR65JR2R7NMQHYIZQQTRIDSQ5ANCNFSM4LNSPKUA>
.
|
Great @ShubhamCanMakeCommit , now we can proceed and merge 🚀 |
@ShubhamCanMakeCommit , I will test creating an issue and closing to see it in action 👍 |
Description
Changes
Issue
Impacted Area
Steps to test
Steps needed to reproduce the scenario from this change to validate if the pull request solve this issue
/test/webhook.test.js
Some other steps you can follow(requires postman)
Before
After