Last active
June 12, 2024 15:14
Revisions
-
haridsv revised this gist
Jun 12, 2024 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,11 @@ document.getElementById("files_tab_counter").click(); setTimeout(function approvePR() { var ele = document.querySelector(".js-review-changes"); if (! ele) { setTimeout(approvePR, 300); return; } ele.click(); document.getElementById("pull_request_review_body").value = "LGTM"; document.evaluate("//*/form/div[1]/fieldset/div/div[2]/span/label", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click(); document.evaluate("//*/form/div[2]/button//*[contains(text(), 'Submit review')]", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click() -
haridsv revised this gist
Jun 12, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ document.getElementById("files_tab_counter").click(); setTimeout(function() { document.querySelector(".js-review-changes").click(); document.getElementById("pull_request_review_body").value = "LGTM"; document.evaluate("//*/form/div[1]/fieldset/div/div[2]/span/label", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click(); document.evaluate("//*/form/div[2]/button//*[contains(text(), 'Submit review')]", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click() }, 300); -
haridsv created this gist
Mar 11, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ document.getElementById("files_tab_counter").click(); setTimeout(function() { document.querySelector(".js-review-changes").click(); document.getElementById("pull_request_review_body").value = "LGTM"; document.evaluate("//*/form/div[1]/div[2]/label/input", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click(); document.evaluate("//*/form/div[2]/button//*[contains(text(), 'Submit review')]", document.querySelector("#review-changes-modal > div"), null, XPathResult.ANY_TYPE, null).iterateNext().click() }, 300);