All Projects β†’ kentaro-m β†’ Auto Assign

kentaro-m / Auto Assign

Licence: isc
πŸ€– A Probot app that adds reviewers to pull requests when pull requests are opened.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Auto Assign

boring-cyborg
πŸ€– A Github bot to automatically label PRs, issues and perform all the boring operations that you don't want to do.
Stars: ✭ 66 (-52.86%)
Mutual labels:  probot, github-app, probot-app
Todo
πŸ€–βœ… GitHub App that creates new issues from actionable comments in your code.
Stars: ✭ 685 (+389.29%)
Mutual labels:  github-app, probot-app, probot
scalafmt-probot
πŸ€–Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (-89.29%)
Mutual labels:  probot, github-app, probot-app
Commitlint Bot
[NOT MAINTAINED] use https://github.com/apps/semantic-pull-requests
Stars: ✭ 157 (+12.14%)
Mutual labels:  github-app, probot-app, probot
linter-alex
πŸ“Sensitive, considerate writing before you merge your Pull Requests
Stars: ✭ 67 (-52.14%)
Mutual labels:  probot, github-app, probot-app
Weekly Digest
Weekly summary of activity on your GitHub repository πŸ“†
Stars: ✭ 199 (+42.14%)
Mutual labels:  github-app, probot-app, probot
Probot Gpg
A GitHub App that enforces GPG signatures on pull requests (no longer maintained)
Stars: ✭ 13 (-90.71%)
Mutual labels:  github-app, probot-app, probot
Gh Polls Bot
Automatically create polls in GitHub issues.
Stars: ✭ 187 (+33.57%)
Mutual labels:  github-app, probot-app, probot
Request Info
Requests more info from PRs/Issues with either the default title or a blank body
Stars: ✭ 89 (-36.43%)
Mutual labels:  github-app, probot-app, probot
issuelabeler
A GitHub bot to label issues automatically based on title and body against list of defined labels. System status (https://status.verticalaxisbd.com/)
Stars: ✭ 23 (-83.57%)
Mutual labels:  probot, github-app, probot-app
Mergeable
πŸ€– All the missing GitHub automation πŸ™‚ πŸ™Œ
Stars: ✭ 475 (+239.29%)
Mutual labels:  github-app, probot-app, probot
merge-me
A GitHub app that merges your pull requests once all required checks pass.
Stars: ✭ 19 (-86.43%)
Mutual labels:  probot, github-app, probot-app
new-pr-welcome
Welcome users when they open their first PR in your repository
Stars: ✭ 20 (-85.71%)
Mutual labels:  probot, github-app, probot-app
branch-switcher
a GitHub bot that switches the base branch of pull requests to the preferred branch
Stars: ✭ 15 (-89.29%)
Mutual labels:  probot, github-app, probot-app
react-preview
a GitHub App built with probot that generates preview links for react based projects.
Stars: ✭ 14 (-90%)
Mutual labels:  probot, github-app, probot-app
Stale
A GitHub App built with Probot that closes abandoned Issues and Pull Requests after a period of inactivity.
Stars: ✭ 1,070 (+664.29%)
Mutual labels:  github-app, probot-app, probot
Project Bot
Automatically add and move Issues/Pull Requests on a Project board
Stars: ✭ 290 (+107.14%)
Mutual labels:  github-app, probot-app
Dep
[DEPRECATED] Use https://github.com/z0al/dependent-issues instead
Stars: ✭ 69 (-50.71%)
Mutual labels:  probot-app, probot
App
The WIP GitHub App
Stars: ✭ 590 (+321.43%)
Mutual labels:  github-app, probot-app
Settings
Pull Requests for GitHub repository settings
Stars: ✭ 514 (+267.14%)
Mutual labels:  github-app, probot-app

Probot: Auto Assign

Actions Status Coverage Status Join the community on Spectrum

A GitHub App built with Probot that adds reviewers/assignees to pull requests when pull requests are opened.

screenshot

How it works

  • When the pull request is opened, automatically add reviewers/assignees to the pull request.
  • If the number of reviewers is specified, randomly add reviewers/assignees to the pull request.
  • If reviewers/assignees are separated into groups in the config file, randomly select the number of reviewers from each group.
  • If the title of the pull request contains a specific keyword, do not add reviewers/assignees to the pull request.

Usage

  1. Install the app.
  2. Create .github/auto_assign.yml in your repository with the following.

Single Reviewers List

Add reviewers/assignees to the pull request based on single reviewers list.

# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
  - reviewerA
  - reviewerB
  - reviewerC

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0

# A list of assignees, overrides reviewers if set
# assignees:
#   - assigneeA

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
# numberOfAssignees: 2

# A list of keywords to be skipped the process that add reviewers if pull requests include it
# skipKeywords:
#   - wip

Add Github Team to Single Reviewers List

Add Github team to the pull request based on single reviewers list using the org/team_slug or /team_slug syntax.

# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of team reviewers to be added to pull requests (GitHub team slug)
reviewers:
  - org/teamReviewerA
  - org/teamReviewerB
  - /teamReviewerC

# Number of reviewers has no impact on Github teams
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0

# A list of assignees, overrides reviewers if set
# assignees:
#   - assigneeA

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
# numberOfAssignees: 2

# A list of keywords to be skipped the process that add reviewers if pull requests include it
# skipKeywords:
#   - wip

Note: Number of reviewers has currently no impact on Github teams and all teams will be added as reviewers.

Multiple Reviewers List

Add reviewers/assignees to the pull request based on multiple reviewers list.

If you and peers work at the separate office or they work at the separate team by roles like frontend and backend, you might be good to use adding reviewers from each group.

# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1

# A number of assignees to add to the pull request
# Set to 0 to add all of the assignees.
# Uses numberOfReviewers if unset.
# numberOfAssignees: 2

# Set to true to add reviewers from different groups to pull requests
useReviewGroups: true

# A list of reviewers, split into different groups, to be added to pull requests (GitHub user name)
reviewGroups:
  groupA:
    - reviewerA
    - reviewerB
    - reviewerC
  groupB:
    - reviewerD
    - reviewerE
    - reviewerF

# Set to true to add assignees from different groups to pull requests
useAssigneeGroups: false

# A list of assignees, split into different froups, to be added to pull requests (GitHub user name)
# assigneeGroups:
#   groupA:
#     - assigneeA
#     - assigneeB
#     - assigneeC
#   groupB:
#     - assigneeD
#     - assigneeE
#     - assigneeF

# A list of keywords to be skipped the process that add reviewers if pull requests include it
# skipKeywords:
#   - wip

Assign Author as Assignee

Add the PR creator as assignee to the pull request.

# Set to author to set pr creator as assignee
addAssignees: author

Advantage

Use Auto Assign in combination with code owners

If you want to add the same reviewers every time the pull request is opened, you can use code owners. Also, if you want to add randomly reviewers, you can use this app together.

About code owners - GitHub Help

Development

# Install dependencies
npm install

# Run typescript
npm run build

# Run the bot
npm start

# Test before submitting a PR
npm test

See Contributing for more information about making improvements to auto-assign.

Deploy

Glitch

Remix on Glitch

  1. Configure a new app on Github.
    • For the Homepage URL, use your repository url or your homepage url: https://random-word.glitch.me/probot.
    • For the Webhook URL, use this URL (again, updating the domain to match yours): https://random-word.glitch.me/. Notice that we left off the /probot.
    • For the Webhook Secret, just use "development". Input the same value in .env file.
    • On the Permissions & webhooks tab, add read/write permissions, read metadata and read single file (.github/auto_assign.yml) for pull requests.
    • On the Permissions & webhooks tab, subscribe to Pull request events.
    • Save your changes.
    • Download the private key.
  2. Click the Install tab, and install your app into one of your repositories.
  3. Click the New File button (at left) and type .data/private-key.pem. Then click Add File. Copy the contents of the private key you downloaded after creating the app, paste it into the new file in Glitch.
  4. Edit the .env file (at left) with your app credentials.
    • Check the example as below.
  5. Wait for app to load. A green Live label should show up next to the Show button when it's finished loading.
# The ID of your GitHub App; You can find this in the About section of your Github app
APP_ID=

# The Webhook Secret; This is generated by you and then inputted in the settings of your Github app.
WEBHOOK_SECRET=development

# The path to a private key file; This is set by you and then set the contents of the private key you downloaded after creating the app.
PRIVATE_KEY_PATH=.data/private-key.pem

GitHub Actions

If you want to use the auto-assign app using GitHub Actions, refer to the following link. Also, because of providing the GitHub action for a new version (GitHub Actions v2; YAML format), the previous version (GitHub Actions v1; HCL format) is deprecated.

kentaro-m/auto-assign-action: An action which adds reviewers to the pull request when the pull request is opened.

Contributing

If you have suggestions for how auto-assign could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC Β© 2018 Kentaro Matsushita

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].