Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajeshkumar7678/probotgithubapp
https://github.com/rajeshkumar7678/probotgithubapp
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rajeshkumar7678/probotgithubapp
- Owner: rajeshkumar7678
- Created: 2023-09-10T15:02:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T04:14:22.000Z (over 1 year ago)
- Last Synced: 2024-10-27T22:22:19.544Z (about 2 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# probotgithubapp
webhookproxyurl=https://smee.io/9FESNzR9V73DLKh
GitHub App Documentation: Code Execution on Pull Requests
Introduction:
Welcome to the documentation for our GitHub App, which provides code execution on pull requests. This documentation will guide you through setting up and using the key features of our app.Table of Contents
InstallationPrerequisites
Installation Steps
Webhook ConfigurationConfiguring Webhooks
Payload URL Setup
Secret Configuration
UsageTriggering Code Execution
Viewing Code Output
Sample Code (Optional)Sample Code for Triggering Execution
Installation
Prerequisites:
Before you start, make sure you have the following prerequisites:A GitHub account
Access to a GitHub repository where you want to test the app
Installation Steps:Access the GitHub App settings in your repository.
Configure the GitHub App with the required permissions.
Set the necessary environment variables (if applicable).
Webhook Configuration
Configuring Webhooks:
To enable code execution on pull requests, you need to set up a webhook in your GitHub repository.Payload URL Setup:
Payload URL: https://localhost:3000/api/webhook
Content Type: application/json
Secret Configuration:
For security purposes, configure the webhook secret.Usage
Triggering Code Execution:
You can trigger code execution by adding the specific command /execute in a comment or commit message on a pull request.Viewing Code Output:
Once code execution is triggered, the output will be displayed in the pull request comments or as a response.Sample Code (Optional)
Sample Code for Triggering Execution:
Here's an example of how to trigger code execution using our GitHub App:1. Comment on the pull request:
/execute
### Conclusion
Congratulations! You have successfully set up our GitHub App for code execution on pull requests. If you encounter any issues or have questions, please feel free to reach out to our support team.
Remember that this is a simplified documentation outline based on the completed tasks. You can expand upon it and include more details as needed.
video presentation link:- https://drive.google.com/file/d/12yyWmHj3WY5H8PG0j04QgKp_EQr4naIi/view?usp=sharing
githiub document which help me a lot:- https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/building-a-github-app-that-responds-to-webhook-events
if have any query so connect with me same mail :[email protected]