Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.76 KB

README.md

File metadata and controls

55 lines (42 loc) · 1.76 KB

👤 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 [email protected] when a PR has been assigned to the mooc GitHub team
  • You name it! Composition over Inheritance FTW! 😊

⚖️ License

MIT