-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #6 ## Changes - Fixed validation of rules not setting default values. - Fixed basic rule amount of review to be a positive integer (min value 1) - Added a test to verify this - Implemented GitHub Action to run on Pull Requests. - Added a log which reports what teams and users are missing. - Fixed a bug where the approvals wasn’t being properly filtered. - Fixed a bug where the system asked the author to review the PR - Fixed the wrong default name of the config file - Was set to `review.yml` instead of `review-bot.yml` - Changed rule type validation to have forced string values. - Added logs which inform when a rule is running and if it fails. - Rules are executed in order, so the logs will always correspond to the current rule. - Created tickets #32, #33 and #34 as foreseeable problems. - Created utility method to concatenate two arrays and removing duplicates. - @mutantcornholio I don’t know if `EngAutomation/js` has this (or if we want to add it to it) - Fixed a bug where the users who had approved the PR was not caching. - Fixed a glitch where the required reviews could be 0 or a negative number. - Fixed a glitch where the rule type could be invalid.
- Loading branch information
Showing
8 changed files
with
177 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Review PR | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- review_requested | ||
- review_request_removed | ||
- ready_for_review | ||
pull_request_review: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
review-approvals: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# TODO: Set this to main | ||
- uses: paritytech/review-bot@self-implementation | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
team-token: ${{ secrets.TEST_TEAM_TOKEN }} |
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
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