Commit Graph

36 Commits

Author SHA1 Message Date
Mikhail f. Shiryaev
1d57666b19
Cancel MasterCI in PRs 2024-01-17 17:40:23 +01:00
Mikhail f. Shiryaev
79d49a006c
Fix the PR body check for Reverts #number 2023-08-01 17:06:23 +02:00
Mikhail f. Shiryaev
acb9531ebf
Unify and put GH access token to the lambda_shared 2023-06-01 21:03:56 +02:00
Mikhail f. Shiryaev
a67950d138
Check the PRs body directly in lambda, without rerun 2023-05-03 22:38:33 +02:00
Mikhail f. Shiryaev
cd2ab02f22
Get rid of legacy DocsReleaseChecks 2023-02-21 17:34:16 +01:00
Mikhail f. Shiryaev
030bd314c0
Use new label from the event instead of all PR labels 2023-02-04 01:18:13 +01:00
Mikhail f. Shiryaev
6e58339b4f
Improve readability by "elif"=>"if" 2023-02-04 01:18:11 +01:00
Mikhail f. Shiryaev
cbbef49e9a
Add early exit on freshly opened PR to not process labels 2023-02-04 01:18:09 +01:00
Alexander Gololobov
472c5a835b
Merge pull request #43862 from ClickHouse/rerun-docs-check-on-edited
Rerun DocsCheck on edited PR description
2022-12-05 13:58:32 +01:00
Mikhail f. Shiryaev
a6a45f98b2
Rerun DocsCheck on edited PR description 2022-12-01 13:26:29 +01:00
Mikhail f. Shiryaev
0f2704703f
Fix typing and bug in cancel_and_rerun_workflow_lambda 2022-11-29 16:50:22 +01:00
Mikhail f. Shiryaev
fbb39cb659
Cancel workflows only on new "do not test" labels in favor of CheckLabels 2022-11-28 21:23:18 +01:00
Mikhail f. Shiryaev
ec344c91b4
Rerun PullRequestCI on changed description body 2022-11-28 20:59:20 +01:00
Mikhail f. Shiryaev
e9e355dd82
Process optionally base64-encoded bodies 2022-11-18 15:17:36 +01:00
Mikhail f. Shiryaev
b1fcdfcaad
Preserve the whole event for debugging 2022-11-18 14:26:19 +01:00
Mikhail f. Shiryaev
1fe095ae90
Explicitly return OK for python lambdas 2022-11-17 15:55:25 +01:00
Mikhail f. Shiryaev
2e5e9a8729
Get rid of API_URL environment 2022-11-17 13:31:41 +01:00
Mikhail f. Shiryaev
cb069d8bfa
Use authorized requests for GET 2022-11-16 15:50:26 +01:00
Mikhail f. Shiryaev
589648c444
Event data for 'labeled' has an added label data 2022-11-16 15:47:32 +01:00
Mikhail f. Shiryaev
3f424de022
Adjust cancel and rerun workflow names to the actual 2022-11-01 14:26:06 +01:00
Mikhail f. Shiryaev
9acb42fcdb
Add time to wait for workflow canceled 2022-05-19 15:26:02 +02:00
Mikhail f. Shiryaev
ab6c3169ac
Use ENV for API_URL customization 2022-05-06 20:50:44 +02:00
Mikhail f. Shiryaev
b85de7e3e2
Fix installation_id filter, minimize docker images diff 2022-05-06 19:15:01 +02:00
Mikhail f. Shiryaev
824335ca33
Filter out sychronized events globbaly 2022-04-25 14:45:11 +02:00
Mikhail f. Shiryaev
e689322980
Improve logic to decide cancelling workflow 2022-04-15 01:28:13 +02:00
Mikhail f. Shiryaev
646fd45645
Request unfiltered workflows in threads 2022-04-15 01:28:12 +02:00
Mikhail f. Shiryaev
3e6dc24a7b
Do not fail the whole lambda if one page failed 2022-04-15 01:28:12 +02:00
Mikhail f. Shiryaev
52a7544aa4
Fix cancel-lambda for closed PRs
- Create a fallback function for some edge cases
- Process synchronized PRs as help for cancel-workflow action
2022-04-15 01:28:12 +02:00
Mikhail f. Shiryaev
abf8c3c5ad
Fix and improve cancel-rerun lambda
- Fix rerun for DocsCheck
- Additional check for workflow head sha1
- Fix workflow debug info
- Fix event_data parsing
- Always print debug info
2022-04-12 11:00:01 +02:00
Mikhail f. Shiryaev
811178da54
Add debug and fix cancel_rerun lambda 2022-04-08 12:28:25 +02:00
Mikhail f. Shiryaev
62ddfbe4ab
Use workflow names instead of ID 2022-01-25 18:32:13 +01:00
Mikhail f. Shiryaev
604af8d3b8
Apply black to cancel lambda 2022-01-25 18:28:17 +01:00
alesapin
33fd1a44ac Fix cancel lambda 2021-12-27 13:26:16 +03:00
alesapin
e31be8f056 Better check in lambda 2021-12-22 12:25:16 +03:00
alesapin
b300de6a4a Better 2021-12-22 11:13:04 +03:00
alesapin
7a00bc96ed Make great again 2021-12-22 10:54:50 +03:00