Disable issue labeler in LLVM forks
authorAlexander Batashev <alexander.batashev@intel.com>
Tue, 14 Dec 2021 17:01:52 +0000 (20:01 +0300)
committerAnton Korobeynikov <anton@korobeynikov.info>
Tue, 14 Dec 2021 17:02:54 +0000 (20:02 +0300)
LLVM forks may use GitHub Actions as well as the upstream projects,
but they do not necessarily follow the same development processes.
Disable automatic issue labeling for forks, so that it does not
interfere with downstream repo automation.

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D115708

.github/workflows/new-issues.yml

index 0a5fac5..5a8e79b 100644 (file)
@@ -6,6 +6,7 @@ on:
 jobs:
   automate-issues-labels:
     runs-on: ubuntu-latest
+    if: github.repository == 'llvm/llvm-project'
     steps:
       - uses: andymckay/labeler@1.0.4
         with: