-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement stronger pull request review decision check
- Loading branch information
1 parent
35d9f22
commit 90c80c6
Showing
5 changed files
with
87 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package github | ||
|
||
// {"data":{"repository":{"pullRequest":{"reviewDecision":"APPROVED"}}}} | ||
|
||
type PullRequestReviewDecision struct { | ||
Data struct { | ||
Repository struct { | ||
PullRequest struct { | ||
ReviewDecision string `json:"reviewDecision"` | ||
} `json:"pullRequest"` | ||
} `json:"repository"` | ||
} `json:"data"` | ||
} | ||
|
||
func (p *PullRequestReviewDecision) Approved() bool { | ||
return p.Data.Repository.PullRequest.ReviewDecision == "APPROVED" | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.17.0 | ||
0.18.0 |