From adaf20f0a6a9f7b8ec40d193d66557bedb342357 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Fri, 8 Sep 2023 11:20:52 -0400 Subject: [PATCH] Uses a preexisting workflow Signed-off-by: Darshit Chanpura --- .../workflows/apply-issue-labels-to-pr.yml | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/apply-issue-labels-to-pr.yml b/.github/workflows/apply-issue-labels-to-pr.yml index 32ac2a96b2..cdd8a0db14 100644 --- a/.github/workflows/apply-issue-labels-to-pr.yml +++ b/.github/workflows/apply-issue-labels-to-pr.yml @@ -4,12 +4,22 @@ on: pull_request: pull_request_target: +#jobs: +# mirror-labels-to-pr: +## if: github.repository == 'opensearch-project/OpenSearch' +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# +# - name: Run label script +# run: pip install PyGithub && .github/copy-issue-labels-to-pr.py ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY $GITHUB_EVENT_PATH + jobs: - mirror-labels-to-pr: -# if: github.repository == 'opensearch-project/OpenSearch' + copy-labels: runs-on: ubuntu-latest + name: Copy labels from linked issues steps: - - uses: actions/checkout@v3 - - - name: Run label script - run: pip install PyGithub && .github/copy-issue-labels-to-pr.py ${{ secrets.GITHUB_TOKEN }} $GITHUB_REPOSITORY $GITHUB_EVENT_PATH + - name: copy-labels + uses: michalvankodev/copy-issue-labels@v1.2.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file