Skip to content

Commit

Permalink
feat: add configuration options (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Aug 12, 2020
1 parent 67f9788 commit 66d01b4
Show file tree
Hide file tree
Showing 13 changed files with 619 additions and 725 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,21 @@ Share this app with one of the following badges.

[![](https://github.com/jpoehnelt/in-solidarity-bot/raw/main/static//badge-for-the-badge.png)](https://github.com/apps/in-solidarity)

## Setup
### Configuration

The level of rules can be modified using `.github/in-solidarity.yml`. Chec the[sample configuration](https://github.com/jpoehnelt/in-solidarity-bot/blob/main/fixtures/in-solidarity.yml).

```yaml
rules:
master:
level: off
slave:
level: failure
```
The rule names are in [rules.ts](https://github.com/jpoehnelt/in-solidarity-bot/blob/main/src/rules.ts).
## Development
```sh
# Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions fixtures/in-solidarity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
master:
level: off
8 changes: 8 additions & 0 deletions fixtures/pull.failing.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
diff --git a/README.md b/README.md
index 83c831f..32091b9 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
# test
+whitelist
+Master
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ module.exports = {
"^.+\\.tsx?$": "ts-jest",
},
collectCoverage: true,
testPathIgnorePatterns: ["/dist/"],
};
Loading

0 comments on commit 66d01b4

Please sign in to comment.