-
-
Save KyMidd/ee9c346e80f070abf97f085c064fc831 to your computer and use it in GitHub Desktop.
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
# Start repo cop workflow targeting a single repo | |
def start_repo_cop_targeted(repo_name, PAT): | |
# Define new data to create | |
payload = { | |
"ref": "master", | |
"inputs": { | |
"repo-to-police": repo_name | |
} | |
} | |
print("๐ Successfully created payload") | |
post_headers = { | |
"Accept": "application/vnd.github+json", | |
"Authorization": "Bearer " + PAT, | |
"X-GitHub-Api-Version": "2022-11-28" | |
} | |
print("๐ Successfully created post headers") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment