From f5b93d6d73f21699a33799268ed1cae501c8cad8 Mon Sep 17 00:00:00 2001 From: Navneet Verma Date: Mon, 4 Dec 2023 18:14:30 -0800 Subject: [PATCH] Added the github action to copy the attached issues label to PR. (#504) Signed-off-by: Navneet Verma (cherry picked from commit c338b946916f2e093128fcfeeb2c97dfbb5a5370) --- .../workflows/copy-linked-issue-labels.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/copy-linked-issue-labels.yml diff --git a/.github/workflows/copy-linked-issue-labels.yml b/.github/workflows/copy-linked-issue-labels.yml new file mode 100644 index 000000000..47851f37f --- /dev/null +++ b/.github/workflows/copy-linked-issue-labels.yml @@ -0,0 +1,21 @@ +name: Copy labels from linked issues +on: + pull_request_target: + types: [opened, edited, review_requested, synchronize, reopened, ready_for_review] + +jobs: + copy-issue-labels: + if: github.repository == 'opensearch-project/neural-search' + runs-on: ubuntu-latest + permissions: + issues: read + contents: read + pull-requests: write + steps: + - name: copy-issue-labels + uses: michalvankodev/copy-issue-labels@v1.3.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + labels-to-exclude: | + untriaged + triaged