1
0
mirror of https://github.com/quay/quay.git synced 2025-07-11 06:41:51 +03:00

[PROJQUAY-1021] task: Update "Black" to version 20.8b1

This commit is contained in:
Kurtis Mullins
2020-11-30 18:48:19 -05:00
committed by GitHub
parent 28a5200d19
commit bd7252c536
234 changed files with 5302 additions and 2233 deletions

View File

@ -40,14 +40,24 @@ logger = logging.getLogger(__name__)
GITHUB_WEBHOOK_PAYLOAD_SCHEMA = {
"type": "object",
"properties": {
"ref": {"type": "string",},
"ref": {
"type": "string",
},
"head_commit": {
"type": ["object", "null"],
"properties": {
"id": {"type": "string",},
"url": {"type": "string",},
"message": {"type": "string",},
"timestamp": {"type": "string",},
"id": {
"type": "string",
},
"url": {
"type": "string",
},
"message": {
"type": "string",
},
"timestamp": {
"type": "string",
},
"author": {
"type": "object",
"properties": {
@ -69,7 +79,11 @@ GITHUB_WEBHOOK_PAYLOAD_SCHEMA = {
},
"repository": {
"type": "object",
"properties": {"ssh_url": {"type": "string",},},
"properties": {
"ssh_url": {
"type": "string",
},
},
"required": ["ssh_url"],
},
},
@ -199,7 +213,10 @@ class GithubBuildTrigger(BuildTriggerHandler):
# Add a deploy key to the GitHub repository.
public_key, private_key = generate_ssh_keypair()
config["credentials"] = [
{"name": "SSH Public Key", "value": public_key.decode("ascii"),},
{
"name": "SSH Public Key",
"value": public_key.decode("ascii"),
},
]
try: