saurabhjoshi17 / getting-started-github-apps

https://lab.github.com/githubtraining/getting-started-with-github-apps
0 stars 0 forks source link

testing #4

Open saurabhjoshi17 opened 5 years ago

request-info[bot] commented 5 years ago

Hey there. You need to provide more information. Cant leave the description field blank.

github-learning-lab[bot] commented 5 years ago

Well done!

Congratulations @saurabhjoshi17, you've completed the Introduction to GitHub Apps course!

congratulations

During this course you successfully:

Probot & GitHub Apps

Probot is the basis of some of the coolest GitHub Apps out there. Most Probot Apps are already hosted, easy to install, and easy to discover. Probot is a framework to help you build GitHub Apps while using Node.js.

Want to learn more about Probot and GitHub Apps? Below are a few resources that will help you along your journey:

Here are some great examples of other Probot Apps:

More detail

If you're curious about exactly why this worked, and what webhooks were used under the surface, click the detailed breakdown below.

A detailed breakdown - As we dig into the documentation, we should see that the `issues` and `pull_request` events are the webhooks that trigger the GitHub API, since those look for ["opened" GitHub actions](https://developer.github.com/webhooks/#events). - [This code snippet](https://github.com/behaviorbot/request-info/blob/master/index.js#L7) shows that our app is looking for two specific webhooks, `pull_request.opened` and `issues.opened`. - Each event, when triggered, will return a specific [payload](https://developer.github.com/v3/activity/events/types/#events-api-payload-13), which basically just hands you a bunch of data that GitHub requested in the background through its API, for your specific event. Each webhook event has it's own payload example that you can reference in the documentation. - In our case, we're looking for [title, body, and user](https://github.com/behaviorbot/request-info/blob/master/index.js#L17). - The rest is mostly coding logic, which is beyond the scope of our course, but you can see an example of what the app does with that information [here](https://github.com/behaviorbot/request-info/blob/master/lib/PullRequestBodyChecker.js). In this case, it looks to check if the content exists, or if it's equal to the existing default templates without any changes. ### Keep learning Want to keep learning? Feel free to [check out our other courses](https://lab.github.com/courses)?

I won't respond to this issue, go ahead and close it when finished!