Skip to content

mention-bot: Automatically mention potential reviewers on pull requests. #416

Closed

Description

@den-run-ai

Activity

  1. den-run-ai commented on Mar 3, 2017

    @den-run-ai
    ContributorAuthor

    I added the webhook, and it is customizable by adding .mention-bot file:

    {
      "maxReviewers": 5, // Maximum  number of people to ping in the PR message, default is 3
      "numFilesToCheck": 10, // Number of files to check against, default is 5
      "message": "@pullRequester, thanks! @reviewers, please review this.",
                 // custom message using @pullRequester and @reviewers
      "alwaysNotifyForPaths": [
        {
          "name": "ghuser", // The user's Github username
          "files": ["src/js/**/*.js"], // The array of file globs associated with the user
          "skipTeamPrs": false // mention-bot will exclude the creator's own team from mentions
        }
      ], // Users will always be mentioned based on file glob
      "fallbackNotifyForPaths": [
        {
          "name": "ghuser", // The user's Github username
          "files": ["src/js/**/*.js"], // The array of file globs associated with the user
          "skipTeamPrs": false // mention-bot will exclude the creator's own team from mentions
        }
      ], // Users will be mentioned based on file glob if no other user was found
      "findPotentialReviewers": true, // mention-bot will try to find potential reviewers based on files history, if disabled, `alwaysNotifyForPaths` is used instead
      "fileBlacklist": ["*.md"], // mention-bot will ignore any files that match these file globs
      "userBlacklist": [], // Users in this list will never be mentioned by mention-bot
      "userBlacklistForPR": [], // PR made by users in this list will be ignored
      "requiredOrgs": [], // mention-bot will only mention user who are a member of one of these organizations
      "actions": ["opened"], // List of PR actions that mention-bot will listen to, default is "opened"
      "skipAlreadyAssignedPR": false, // mention-bot will ignore already assigned PR's
      "skipAlreadyMentionedPR": false, // mention-bot will ignore if there is already existing an exact mention
      "assignToReviewer": false, // mention-bot assigns the most appropriate reviewer for PR
      "createReviewRequest": false, // mention-bot creates review request for the most appropriate reviewer for PR
      "createComment": true, // mention-bot creates a comment mentioning the reviewers for the PR
      "skipTitle": "", // mention-bot will ignore PR that includes text in the title,
      "withLabel": "", // mention-bot will only consider PR's with this label. Must set actions to ["labeled"].
      "delayed": false, // mention-bot will wait to comment until specified time in `delayedUntil` value
      "delayedUntil": "3d", // Used if delayed is equal true, permitted values are: minutes, hours, or days, e.g.: '3 days', '40 minutes', '1 hour', '3d', '1h', '10m'
      "skipCollaboratorPR": false // mention-bot will ignore if PR is made by collaborator
    }
    
  2. vmuriart commented on Mar 3, 2017

    @vmuriart
    Contributor

    since its implemented, ok to close issue ?

  3. den-run-ai commented on Mar 3, 2017

    @den-run-ai
    ContributorAuthor
  4. den-run-ai commented on Mar 12, 2017

    @den-run-ai
    ContributorAuthor

    @vmuriart so mentionbot was not working on your recent pull request, which I fixed in the settings today:

    #427

  5. den-run-ai commented on Mar 22, 2017

    @den-run-ai
    ContributorAuthor

    ok, mentionbot is working now:

    #435 (comment)

  6. den-run-ai commented on Mar 23, 2017

    @den-run-ai
    ContributorAuthor

    @denfromufa is there a way to exclude to AUTHORS.md from mention-bot?

    yes, it is this setting file that I'm adding:

    #416 (comment)

  7. den-run-ai commented on Mar 23, 2017

    @den-run-ai
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions