Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.13.0: Added exclude option to filter reviewers #87

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

manuelmhtr
Copy link
Contributor

Changes

  • Improved README to explain a common permissions error.
  • Added exclude option to filter reviewers.
  • Improved Slack integration to prevent limit errors.

@manuelmhtr manuelmhtr self-assigned this Feb 11, 2024
// Github usernames can only contain alphanumeric characters and dashes (-)
const sanitize = (str = '') => (str || '').replace(/[^-a-zA-Z0-9]/g, '').toLowerCase();

const isRexExp = (str) => REGEXP_PATTERN.test(str);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const isRexExp = (str) => REGEXP_PATTERN.test(str);
const isRegExp = (str) => REGEXP_PATTERN.test(str);

README.md Outdated
| `charts` | Whether to add a chart to the start. Possible values: `true` or `false`. | `false` |
| `disableLinks` | If `true`, removes the links to the detailed charts. Possible values: `true` or `false`. | `false` |
| `sortBy` | The column used to sort the data. Possible values: `REVIEWS`, `TIME`, `COMMENTS`. | `REVIEWS` |
| `publishAs` | Where to publish the results. Possible values: as a `COMMENT`, on the pull request `DESCRIPTION`, or publish `NONE`. | `COMMENT` |
| `exclude` | A comma-separated list of usernames (case-insensitive) to be excluded from the results (e.g., username1, username2), or a regular expression enclosed between slashes (eg. `/^bot/i` will exclude all usernames that begin with "bot"). | `null` |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `exclude` | A comma-separated list of usernames (case-insensitive) to be excluded from the results (e.g., username1, username2), or a regular expression enclosed between slashes (eg. `/^bot/i` will exclude all usernames that begin with "bot"). | `null` |
| `exclude` | A comma-separated list of usernames (case-insensitive) to be excluded from the results (e.g. username1, username2), or a regular expression enclosed between slashes (eg. `/^bot/i` will exclude all usernames that begin with "bot"). | `null` |

@manuelmhtr manuelmhtr merged commit 1d60392 into master Feb 13, 2024
4 checks passed
@manuelmhtr manuelmhtr deleted the v2.13.0 branch February 13, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants