Cancel MasterCI in PRs

This commit is contained in:
Mikhail f. Shiryaev 2024-01-17 17:40:23 +01:00
parent ac1dac4fe3
commit 1d57666b19
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -1,28 +1,24 @@
#!/usr/bin/env python3
from base64 import b64decode
from collections import namedtuple
from typing import Any, Dict, List, Optional, Tuple
from threading import Thread
from queue import Queue
import json
import re
import time
from base64 import b64decode
from collections import namedtuple
from queue import Queue
from threading import Thread
from typing import Any, Dict, List, Optional, Tuple
import requests # type: ignore
from lambda_shared.pr import CATEGORY_TO_LABEL, check_pr_description
from lambda_shared.token import get_cached_access_token
NEED_RERUN_ON_EDITED = {
"PullRequestCI",
"DocsCheck",
}
NEED_RERUN_OR_CANCELL_WORKFLOWS = {
"BackportPR",
}.union(NEED_RERUN_ON_EDITED)
"DocsCheck",
"MasterCI",
"PullRequestCI",
}
MAX_RETRY = 5