From d8bd033bd288707de9e8b1281638cf8eb8914415 Mon Sep 17 00:00:00 2001 From: DGrothe-PhD Date: Tue, 13 Jun 2023 17:24:11 +0200 Subject: [PATCH 1/2] labeler formatting revised --- .github/labeler.yml | 36 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 17 +++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml 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..eb9ac2b05 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +# 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: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 5593fa800d9c4f41328cf4ff2a7ae53e2698468f Mon Sep 17 00:00:00 2001 From: DGrothe-PhD Date: Tue, 13 Jun 2023 17:33:46 +0200 Subject: [PATCH 2/2] fix write-all --- .github/workflows/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index eb9ac2b05..e0eb2af95 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -10,6 +10,7 @@ on: [pull_request] jobs: label: + permissions: write-all runs-on: ubuntu-latest steps: - uses: actions/labeler@v2