Comments (1)
I had a query, I installed your app, but I am not sure how is it working, as far as I understand, after installation, you must have received a access token valid on my GitHub account but where did you stored that access token, as I never created account on WIP app website.
The act of installing an app grants the app access to all repositories that you added to that installation. With the credentials of the WIP app (ID and private key) and the ID of your installation, I can now create an installation access token. Using that token, I can now interact with resources in the repositories you granted the app access to, limited by the requested permission of the app.
The way the WIP works, and most GitHub Apps for that matter, is this
- GitHub sends a webhook request for a pull request to the configured URL of the WIP app. For example, the
pull_request
events are handled here:Lines 12 to 21 in 5476d4a
- The payload includes the installation ID. The app is using that installation ID to create an access token. This is all taken care of by Octokit, GitHub's Official SDK. The webhook handler callback receives an object with an
.octokit
property, which is the octokit instance that is pre-authenticated using the installation access token. See this documentation for more information: https://github.com/octokit/octokit.js#webhooks
Hope that helps! I'll close this issue as there is nothing actionable for me, but feel free to ask follow up questions.
from app.
Related Issues (20)
- An in-range update of probot is breaking the build π¨ HOT 2
- The bot sent status about events from last year HOT 2
- WIP sending lots of very old βWIP checks staleβ notifications HOT 2
- An in-range update of semantic-release is breaking the build π¨ HOT 2
- How to address the issue of your GitHub App being down(just in case) HOT 2
- WIP blocks merging if commit message contains "wip" HOT 6
- Label matcher stopped working HOT 8
- Handle suspended installations
- Label matcher stopped working HOT 19
- M
- WIP Server seems to be hanging HOT 5
- Add support for the Draft prefix out-of-the-box HOT 1
- Title HOT 1
- wip/alp
- github/wip.yml is being ignored HOT 11
- Add support for merge_queue HOT 2
- Add support for :construction: `:construction:` (text) HOT 1
- The user data can't be public HOT 3
- Changing Title after Build kicks off makes WIP stuck HOT 2
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 app.