Skip to content

CodelyTV/request-review-by-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ค Request Review Pull Request by modified path

codely.tv CodelyTV Courses GitHub Action version

Assign Pull Requests to your GitHub teams or individual users based on the paths of the modified files

๐Ÿš€ Usage

โ˜๏ธ Create a file named assign-by-path.yml inside the .github/workflows directory and paste:

name: assign-by-path

on: [push]

jobs:
  assigner:
    runs-on: ubuntu-latest
    name: ๐Ÿ‘ค Assign by path
    steps:
      - uses: codelytv/assign-by-path@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        mapping: |
          rgomezcasas: ["src"]
          javiercane: ["src", "dist"]
          barackObama: ["node_modules"]
          CodelyTV/staff: ["src"]

๐Ÿ’ก Use case examples

You can combine this action with others such as:

  • Notify to the Slack channel #mooc-team when a PR has been assigned to the mooc GitHub team
  • Send an email to mooc-team+notifications@example.com when a PR has been assigned to the mooc GitHub team
  • You name it! Composition over Inheritance FTW! ๐Ÿ˜Š

โš–๏ธ License

MIT

About

๐Ÿ‘ค GitHub Action: Assign Pull Requests to your GitHub teams or individual users based on the paths of the modified files

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors