Comments (2)
We would appreciate it very much if you could provide us with more info about this issue/pr!This is test!
from getting-started-github-apps.
Well done!
Congratulations @JustinZZW, you've completed the Introduction to GitHub Apps course!
During this course you successfully:
- Learned what GitHub Apps are and how they're useful
- Understood their place in the SDLC and the greater ecosystem
- Were introduced to GitHub's APIs and their role with Apps
- Understood the basic functions of webhooks and how you can interact with them
- Installed two GitHub Probot Apps on our repository
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:
- Stale: Closes issues and pull requests that have been around for a bit too long without activity
- Delete merged branch: After a merge, deletes the branch
- First timers: Creates an issue to help onboard new open source contributors to your community
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
andpull_request
events are the webhooks that trigger the GitHub API, since those look for "opened" GitHub actions. - This code snippet shows that our app is looking for two specific webhooks,
pull_request.opened
andissues.opened
. - Each event, when triggered, will return a specific payload, 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.
- 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. 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?
I won't respond to this issue, go ahead and close it when finished!
from getting-started-github-apps.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getting-started-github-apps.