diff --git a/.github/labeler.yml b/.github/labeler.yml index 172c748e..4dea0db2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -25,6 +25,10 @@ off1: - changed-files: - any-glob-to-any-file: '**/*off1*' +ovh1: +- changed-files: + - any-glob-to-any-file: '**/*ovh1*' + ovh2: - changed-files: - any-glob-to-any-file: '**/*ovh2*' diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index d438b797..c201024a 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -5,13 +5,18 @@ # file with configuration. For more information, see: # https://github.com/actions/labeler -name: Labeler -on: [pull_request] +name: Automatically add relevant labels to Pull Requests +on: +- pull_request_target + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: label: runs-on: ubuntu-latest - if: github.event.pull_request.head.repo.full_name == github.repository + #if: github.event.pull_request.head.repo.full_name == github.repository #if: ${{ github.repository_owner == 'openfoodfacts' }} permissions: contents: read