Last active
February 11, 2021 22:02
-
-
Save bialesdaniel/b819d92811606825fb6461f3e932e2b4 to your computer and use it in GitHub Desktop.
Constants file for a Django app that creates Github Checks for PRs
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
import os | |
# GitHub Integration | |
GITHUB_APP_ID = 12345 # This value can be found on your GitHub App overview page | |
# My secrets are environment variables | |
# The webhook secret you chose for the GitHub App | |
GITHUB_APP_WEBHOOK_SECRET = os.environ.get('GITHUB_APP_WEBHOOK_SECRET') | |
# The private key that was generated when you created the GitHub App | |
GITHUB_APP_PRIVATE_KEY = os.environ.get('GITHUB_APP_PRIVATE_KEY') | |
GITHUB_WEBHOOK_HASH_HEADER = 'HTTP_X_HUB_SIGNATURE_256' | |
GITHUB_EVENT_HEADER = 'HTTP_X_GITHUB_EVENT' | |
GITHUB_BASE_URL = 'https://api.github.com/' | |
# GitHub Respository Client | |
# Change the following values to the owner and name of your repository. | |
# This example only allows events from one repo. In order to allow for more small | |
# tweaks would need to be made to the code. | |
REPO_OWNER = 'cmu-db' # GitHub owner of the repo where the PRs will be submitted | |
REPO_NAME = 'noisepage' # Name of the repo where the PRs will be submitted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment