-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2395 from cms-sw/draft-prs
Implement special handling for draft PRs (and add tests)
- Loading branch information
Showing
23 changed files
with
1,378 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
*.pyc | ||
.idea | ||
.idea | ||
*.properties | ||
tests/Framework.py | ||
venv | ||
GithubCredentials.py |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,4 +107,4 @@ | |
"context": "bot/17/ack" | ||
} | ||
} | ||
] | ||
] |
This file contains 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
90 changes: 90 additions & 0 deletions
90
tests/PRActionData/TestProcessPr.test_draft_pr_ask_ready.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
[ | ||
{ | ||
"type": "load-bot-cache", | ||
"data": { | ||
"commits": { | ||
"28ce3f5888b5433dcae409ee336b2ad422595246": { | ||
"files": [ | ||
"FWCore/Utilities/BuildFile.xml" | ||
], | ||
"squashed": false, | ||
"time": 1733495641 | ||
}, | ||
"9138474754099798ff50cb07287e7caa4786f247": { | ||
"files": [ | ||
"FWCore/Utilities/BuildFile.xml" | ||
], | ||
"squashed": false, | ||
"time": 1733482192 | ||
} | ||
}, | ||
"emoji": { | ||
"2523442237": "+1", | ||
"2532358732": "+1", | ||
"2545714988": "+1", | ||
"2545738731": "+1" | ||
}, | ||
"last_seen_sha": "28ce3f5888b5433dcae409ee336b2ad422595246", | ||
"signatures": { | ||
"2545714988": "28ce3f5888b5433dcae409ee336b2ad422595246", | ||
"2545738731": "28ce3f5888b5433dcae409ee336b2ad422595246" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "emoji", | ||
"data": [ | ||
2523442237, | ||
"+1", | ||
true | ||
] | ||
}, | ||
{ | ||
"type": "emoji", | ||
"data": [ | ||
2545714988, | ||
"+1", | ||
true | ||
] | ||
}, | ||
{ | ||
"type": "emoji", | ||
"data": [ | ||
2545738731, | ||
"+1", | ||
true | ||
] | ||
}, | ||
{ | ||
"type": "add-label", | ||
"data": [ | ||
"fully-signed-draft", | ||
"l1-approved" | ||
] | ||
}, | ||
{ | ||
"type": "remove-label", | ||
"data": [ | ||
"l1-pending", | ||
"pending-signatures" | ||
] | ||
}, | ||
{ | ||
"type": "create-comment", | ||
"data": "@iarspider if this PR is ready to be reviewed by the release team, please remove the \"Draft\" status." | ||
}, | ||
{ | ||
"type": "edit-comment", | ||
"data": "cms-bot internal usage<!-- bot cache: {\"commits\":{\"28ce3f5888b5433dcae409ee336b2ad422595246\":{\"files\":[\"FWCore/Utilities/BuildFile.xml\"],\"squashed\":false,\"time\":1733495641},\"9138474754099798ff50cb07287e7caa4786f247\":{\"files\":[\"FWCore/Utilities/BuildFile.xml\"],\"squashed\":false,\"time\":1733482192}},\"emoji\":{\"2523442237\":\"+1\",\"2532358732\":\"+1\",\"2545714988\":\"+1\",\"2545738731\":\"+1\"},\"last_seen_sha\":\"28ce3f5888b5433dcae409ee336b2ad422595246\",\"signatures\":{\"2545714988\":\"28ce3f5888b5433dcae409ee336b2ad422595246\",\"2545738731\":\"28ce3f5888b5433dcae409ee336b2ad422595246\"}} -->" | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "28ce3f5888b5433dcae409ee336b2ad422595246", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/21#issuecomment-2545738731", | ||
"description": "Comment by iarspider at 2024-12-16 14:13:40 UTC processed.", | ||
"context": "bot/21/ack" | ||
} | ||
} | ||
] |
57 changes: 57 additions & 0 deletions
57
tests/PRActionData/TestProcessPr.test_draft_pr_assign.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[ | ||
{ | ||
"type": "load-bot-cache", | ||
"data": { | ||
"commits": { | ||
"9138474754099798ff50cb07287e7caa4786f247": { | ||
"files": [ | ||
"FWCore/Utilities/BuildFile.xml" | ||
], | ||
"squashed": false, | ||
"time": 1733482192 | ||
} | ||
}, | ||
"emoji": { | ||
"2523442237": "+1" | ||
}, | ||
"last_seen_sha": "9138474754099798ff50cb07287e7caa4786f247", | ||
"signatures": {} | ||
} | ||
}, | ||
{ | ||
"type": "emoji", | ||
"data": [ | ||
2523442237, | ||
"+1", | ||
true | ||
] | ||
}, | ||
{ | ||
"type": "create-comment", | ||
"data": "New categories assigned: l1\n\n@aloeliger,@epalencia you have been requested to review this Pull request/Issue and eventually sign? Thanks" | ||
}, | ||
{ | ||
"type": "add-label", | ||
"data": [ | ||
"l1-pending" | ||
] | ||
}, | ||
{ | ||
"type": "remove-label", | ||
"data": [] | ||
}, | ||
{ | ||
"type": "edit-comment", | ||
"data": "cms-bot internal usage<!-- bot cache: {\"commits\":{\"9138474754099798ff50cb07287e7caa4786f247\":{\"files\":[\"FWCore/Utilities/BuildFile.xml\"],\"squashed\":false,\"time\":1733482192}},\"emoji\":{\"2523442237\":\"+1\"},\"last_seen_sha\":\"9138474754099798ff50cb07287e7caa4786f247\",\"signatures\":{}} -->" | ||
}, | ||
{ | ||
"type": "status", | ||
"data": { | ||
"commit": "9138474754099798ff50cb07287e7caa4786f247", | ||
"state": "success", | ||
"target_url": "https://github.com/iarspider-cmssw/cmssw/pull/21#issuecomment-2523442237", | ||
"description": "Comment by iarspider at 2024-12-06 15:01:51 UTC processed.", | ||
"context": "bot/21/ack" | ||
} | ||
} | ||
] |
Oops, something went wrong.