-
Notifications
You must be signed in to change notification settings - Fork 425
GitHub tool #931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
GitHub tool #931
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0d4e0bd
TLK-2709 - Github Tool Implementation
EugeneLightsOn 57632a5
TLK-2709 - Github Tool Implementation
EugeneLightsOn fd0b462
TLK-2709 - Github Tool Implementation
EugeneLightsOn e4c35f2
TLK-2709 - Github Tool Implementation - temporary commit
EugeneLightsOn f478720
TLK-2709 - Github Tool Implementation - temporary commit
EugeneLightsOn 2b33a13
TLK-2709 - Github Tool Implementation - temporary commit
EugeneLightsOn e1beb5d
TLK-2709 - Github Tool Implementation - temporary commit
EugeneLightsOn 25fc2c8
TLK-2709 - Github Tool Implementation - temporary commit
EugeneLightsOn 5d81b79
TLK-2709 - Github Tool Implementation
EugeneLightsOn 8d0ad72
TLK-2709 - Github Tool Implementation
EugeneLightsOn d1eadb1
TLK-2709 - Github Tool Implementation + small fixes
EugeneLightsOn bee03e9
Merge branch 'main' into eugene/tlk-2709-add-github-tool
EugeneLightsOn 107705e
TLK-2709 - Github Tool Implementation format
EugeneLightsOn 913e1b1
TLK-2709 - Github Tool Implementation
EugeneLightsOn c980613
TLK-2709 - Github Tool Implementation
EugeneLightsOn 3914e8c
TLK-2709 - Github Tool Implementation
EugeneLightsOn 120ea6f
TLK-2709 - Github Tool Implementation review fixes
EugeneLightsOn 2ae7fc8
TLK-2709 - Github Tool Implementation review fixes
EugeneLightsOn 0809c75
Merge branch 'main' into eugene/tlk-2709-add-github-tool
EugeneLightsOn afcf1e0
TLK-2709 - Github Tool Implementation review fixes
EugeneLightsOn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Github Tool Setup | ||
|
|
||
| To set up the Github tool you will need a Github application. Follow the steps below to set it up: | ||
|
|
||
| ## 1. Create a Github App | ||
|
|
||
| Head to the [Github Settings](https://github.com/settings/apps) and create a new app. | ||
| Specify App [permissions](https://docs.github.com/rest/overview/permissions-required-for-github-apps), Callback URL (for local setup - http://localhost:8000/v1/tool/auth). | ||
| Uncheck the `Webhook->Active` option. After creating the app, you will see the `General` section. Copy the `Client ID`, generate and copy `Client Secret` values. | ||
| That will be used for the environment variables specified above. | ||
| This tool also support OAuth Apps. See the [documentation](https://docs.github.com/en/apps/oauth-apps) for more information. | ||
|
|
||
| ## 2. Set Up Environment Variables | ||
| Set the configuration in the `configuration.yaml` | ||
| ```yaml | ||
| github: | ||
| default_repos: | ||
| - repo1 | ||
| - repo2 | ||
| user_scopes: | ||
| - public_repo | ||
| - read:org | ||
| ``` | ||
| Then set the following secrets variables. You can either set the below values in your `secrets.yaml` file: | ||
| ```yaml | ||
| github: | ||
| client_id: <your_client_id from step 1> | ||
| client_secret: <your_client_secret from step 1> | ||
| ``` | ||
| or update your `.env` configuration to contain: | ||
| ```dotenv | ||
| GITHUB_CLIENT_ID=<your_client_id from step 1> | ||
| GITHUB_CLIENT_SECRET=<your_client_secret from step 1> | ||
| GITHUB_DEFAULT_REPOS=["repo1","repo2"] | ||
| GITHUB_USER_SCOPES=["public_repo","read:org"] | ||
| ``` | ||
| Please note if the default repos are not set, the tool will process over all user repos. | ||
|
|
||
| ## 3. Run the Backend and Frontend | ||
|
|
||
| run next command to start the backend and frontend: | ||
|
|
||
| ```bash | ||
| make dev | ||
| ``` | ||
|
|
||
| ## 4. Troubleshooting | ||
|
|
||
| If you encounter any issues with OAuth, please check the following [link](https://api.Github.com/authentication/oauth-v2#errors) | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.