diff --git a/.github/workflows/apply-issue-labels-to-pr.yml b/.github/workflows/apply-issue-labels-to-pr.yml index 575e52427e9ff..b993118582665 100644 --- a/.github/workflows/apply-issue-labels-to-pr.yml +++ b/.github/workflows/apply-issue-labels-to-pr.yml @@ -1,18 +1,15 @@ -name: Apply issue labels to PR +name: Apply all issue labels to PR on: + pull_request: pull_request_target: - types: [opened, reopened, synchronize, converted_to_draft, edited] - check_suite: - types: [ requested, rerequested, completed ] jobs: mirror-labels-to-pr: -# if: github.repository == 'opensearch-project/OpenSearch' + # if: github.repository == 'opensearch-project/OpenSearch' runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: Run label script - run: ../../.github-automation/copy-issue-labels-to-pr.py ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY $GITHUB_EVENT_PATH + run: pip install PyGithub && .github/copy-issue-labels-to-pr.py ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY $GITHUB_EVENT_PATH