generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ethanis/content-filters
Add contentFilters to match comments based on commit diffs
- Loading branch information
Showing
18 changed files
with
375 additions
and
73 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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
- markdown: | | ||
## Rockstar alert | ||
Thanks for this contribution, we _really_ appreciate your help :heart:! | ||
- markdown: | | ||
Are you _sure_ you want to be console logging or debuggering here?? :trollface: | ||
pathFilter: | ||
- '*' | ||
- 'src/**' | ||
contentFilter: | ||
- '(\+\s*console.log\(.*\))' | ||
- '(\+\s*debugger)' | ||
|
||
- markdown: | | ||
Please proofread any changes to documentation. | ||
pathFilter: | ||
- '**/*.md' | ||
|
||
- markdown: | | ||
## Uh oh | ||
Don't check in binaries...we use GitHub package registry for that! | ||
Uhh... don't check in binaries here - we use GitHub package registry for that! | ||
blocking: true | ||
pathFilter: | ||
- '+**/*.dll' |
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
2 changes: 1 addition & 1 deletion
2
__tests__/data/blocking-nitpicks.yml → __tests__/data/blocking_nitpicks.yml
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,5 +1,5 @@ | ||
- markdown: | | ||
This is a blcoking comment | ||
This is a blocking comment | ||
blocking: true | ||
pathFilter: | ||
- '**/*.dll' | ||
|
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,9 @@ | ||
- markdown: | | ||
## Notice | ||
Thanks for this contribution. We _really_ appreciate your help! | ||
- markdown: | | ||
## Blocking issue | ||
blocking: true | ||
pathFilter: | ||
- '**/*.dll' |
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,8 @@ | ||
- markdown: | | ||
## Notice | ||
Thanks for this contribution. We _really_ appreciate your help! | ||
- markdown: | | ||
Properly escaped regexp | ||
contentFilter: | ||
- '(\+\s*console.log\(.*\))' |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
# Test that pathFilter alone works | ||
- markdown: | | ||
## Notice | ||
Thanks for this contribution. We _really_ appreciate your help! | ||
pathFilter: | ||
- '**' | ||
# blocking is a valid option | ||
- markdown: | | ||
## Blocking issue | ||
We no longer check in binaries to this repo - our new convention is to use NuGet packages. | ||
Read more about this change [here](https://www.nuget.org/). | ||
blocking: true | ||
pathFilter: | ||
- '**/*.dll' | ||
# Path filter should default to * | ||
- markdown: | | ||
Apply to everything | ||
# Test that contentFilter is a valid option | ||
- markdown: | | ||
Don't add email addresses! | ||
contentFilter: | ||
- '[\w-]+@([\w-]+\.)+[\w-]+' | ||
# Kitchen sink | ||
- markdown: | | ||
Oops - looks like you added a `puts` statement | ||
pathFilter: | ||
- app/**/*.rb | ||
contentFilter: | ||
- '(puts\W+)' |
Oops, something went wrong.