Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to delete pending reviews on a pull request (#1897)
Add a delete method to PullRequestReview to allow dismissing them. Fixes #1856 Co-authored-by: bagashvilit <bagashvilit@allegheny.edu> Co-authored-by: WonjoonC <chos@allegheny.edu>
- Loading branch information
1 parent
f1faf94
commit c8a945b
Showing
6 changed files
with
69 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from . import Framework | ||
|
||
|
||
class PullRequestReview1856(Framework.TestCase): | ||
def setUp(self): | ||
super().setUp() | ||
pumpkin_repo = self.g.get_repo("CS481-Team-Pumpkin/PyGithub", lazy=True) | ||
self.pumpkin_pull = pumpkin_repo.get_pull(4) | ||
self.pullreview = self.pumpkin_pull.get_review(631460061) | ||
|
||
def testDelete(self): | ||
self.pullreview.delete() | ||
reviews = self.pumpkin_pull.get_reviews() | ||
self.assertEqual(list(reviews), []) |
Oops, something went wrong.