gagoar / use-herald-action

GitHub action to add reviewers, subscribers, labels, and assignees to your PR. You can validate your PR template as well.
https://gagoar.github.io/use-herald-action/
MIT License
53 stars 7 forks source link

Add trigger for user membership in a team #374

Open gagoar opened 3 years ago

gagoar commented 3 years ago

Issue Reference: fixes #346

Implements feature request #346

Motivation and Context

Useful to create custom rules like adding a label when a member is part of a team, among other things, to trigger a workflow.

it is a really useful filter when adding ppl to a review or commenting, for instance, checking if the person is on a team, might reduce adding a comment to that PR. etc.

How Has This Been Tested?

unit tests.

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #374 (bef9140) into master (832e036) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #374   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         9    +1     
  Lines          344       373   +29     
  Branches        54        59    +5     
=========================================
+ Hits           344       373   +29     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/isMemberOf.ts 100.00% <100.00%> (ø)
src/rules.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication