Skip to content

Commit

Permalink
Add ability to ignore PRs with specific label (#70)
Browse files Browse the repository at this point in the history
* Add ignore-label new input to ignore some prs

* Update version

* Update version

* Update dist

* Add a new assert

* Add a new assert

* Remove empty line

* Update packages
  • Loading branch information
DavideViolante authored Sep 23, 2022
1 parent 430a94f commit 23acc7e
Show file tree
Hide file tree
Showing 8 changed files with 1,023 additions and 2,149 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ For MS Teams, the provider user ID can be an [MS teams user ID or a UPN](https:/

Another hacky way (no code) to find the MS Teams UPN is the following: open MS Teams on your browser, click the 3 dots near your Team name, click Add member, open Google Chrome console Network tab Fetch/XHR category, type the email address, look for "searchV2" in the Network tab, click Response tab.

### ignore-label

Ignore Pull Requests with that label, eg: `no-reminder` (optional).

## Example usage

```yaml
Expand All @@ -42,14 +46,15 @@ jobs:
pr-reviews-reminder:
runs-on: ubuntu-latest
steps:
- uses: davideviolante/pr-reviews-reminder-action@v2.0.0
- uses: davideviolante/pr-reviews-reminder-action@v2.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
webhook-url: '' # Required
provider: '' # Required (slack or msteams)
channel: '' # Optional, eg: #general
github-provider-map: '' # Optional, eg: "DavideViolante:UEABCDEFG,foobar:UAABCDEFG"
github-provider-map: '' # Optional, eg: DavideViolante:UEABCDEFG,foobar:UAABCDEFG
ignore-label: '' # Optional, eg: no-reminder
```
## Bug or feedback?
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'Map GitHub username to Slack user IDs. Eg: "DavideViolante:UABCDEFGH,foobar123:UIHJKLMNO"'
required: false
default: false
ignore-label:
description: 'Ignore Pull Requests with that label'
required: false
default: ''
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit 23acc7e

Please sign in to comment.