Skip to content

Commit b2f7bb1

Browse files
author
Roshan Jossy
committed
change message
1 parent c573e18 commit b2f7bb1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

api/merge.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const request = require('request')
22

3-
exports.handleSubmit = (req, res) => {
3+
module.exports = (req, res) => {
44
const pullRequest = req.body.pull_request
55
if (shouldHandlePullRequestChange(req)) {
66
const result = handlePullRequest(pullRequest)
@@ -63,21 +63,13 @@ const getPostRequestOptions = (user, url) => ({
6363

6464
const getMergeMessage = username => `Hello @${username}, congratulations! You've successfully submitted a pull request. 🎉
6565
**Next steps**
66-
- Continue contributing: If you're looking for projects to contribute to, checkout our [webapp](https://firstcontributions.github.io).
67-
- Join our slack group: We have a community to help/support contributors. [Join slack group](https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM).
68-
- Share on social media: You can share this content to help more people. [Share](https://firstcontributions.github.io/#social-share).
66+
- Continue contributing: If you're looking for projects to contribute to, checkout our [<img src="https://avatars0.githubusercontent.com/u/65761570?s=88&u=640f39b808c75c6b86460aa907dd030bcca2f3c7&v=4" width="22" title="web app" /> webapp](https://firstcontributions.github.io).
67+
- Join our slack group: We have a community to help/support contributors. [<img src="https://edent.github.io/SuperTinyIcons/images/svg/slack.svg" width="22" title="Slack" /> Join slack group](https://join.slack.com/t/firstcontributors/shared_invite/enQtNjkxNzQwNzA2MTMwLTVhMWJjNjg2ODRlNWZhNjIzYjgwNDIyZWYwZjhjYTQ4OTBjMWM0MmFhZDUxNzBiYzczMGNiYzcxNjkzZDZlMDM).
68+
- Share on social media: You can share this content to help more people. [ <img alt="twitter" title="twitter" src="https://edent.github.io/SuperTinyIcons/images/svg/twitter.svg" width="22"> tweet](https://twitter.com/intent/tweet?text=Yay%21%20I%20just%20made%20my%20first%20open%20source%20contribution%20with%20@1stcontribution.%20You%20can%20too%20at%20https%3A//goo.gl/66Axwe%0A&hashtags=OpenSource,CodeNewbie). [<img alt="twitter" title="twitter" src="https://edent.github.io/SuperTinyIcons/images/svg/facebook.svg" width="22"> share](https://www.facebook.com/sharer/sharer.php?u=https://roshanjossey.github.io/first-contributions&quote=Yay%21%20I%20just%20made%20my%20first%20open%20source%20contribution%20with%20First%20Contributions.%20You%20can%20too,%20by%20following%20a%20simple%20tutorial%20at%20https%3A//goo.gl/66Axwe&hashtag=%23OpenSource)
6969
7070
We'd love to hear your thoughts about this project. Let us know how we can improve my commenting or opening an issue here.`;
7171

7272
const logStatusAndErrors = (error, response) => {
7373
console.error('error:', error) // Print the error if one occurred
7474
console.error('statusCode:', response && response.statusCode) // Print the response status code if a response was received
7575
}
76-
77-
module.exports = {
78-
shouldHandlePullRequestChange,
79-
isChangeInContributorsFile,
80-
isSingleLineChange,
81-
getPostRequestOptions,
82-
getMergeMessage
83-
}

0 commit comments

Comments
 (0)