diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..807f93417 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +ruby: +- './**/*.rb' + +javascript: +- './**/*.js' +- './**/*.ts*' + +spec: +- 'spec/**' +- './**/*.spec.js' +- './**/*.spec.ts*' + +model: +- 'app/models/**' + +controller: +- 'app/controllers/**' + +mailer: +- 'app/mailers/**' + +view: +- 'app/views/**' + +job: +- 'app/jobs/**' + +dependencies: +- 'Gemfile.lock' +- 'yarn.lock' +- 'gems/**' +config: +- './config/**' +widget: +- 'app/javascript/donate-button/*' +- 'app/assets/stylesheets/donate-button/*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..e0eb2af95 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Labeler +on: [pull_request] + +jobs: + label: + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"