From 2dacdb2c6c39fe7f9be07f25a9da8ef6a3836a80 Mon Sep 17 00:00:00 2001 From: Sylvain Juge <763082+SylvainJuge@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:52:05 +0100 Subject: [PATCH] assign internal PRs to author --- .github/workflows/labeler.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 1f55f8f..fad711d 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -59,6 +59,14 @@ jobs: NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Assign new internal pull requests to author + id: assign-to-author + if: steps.is_elastic_member.outputs.result == 'true' && github.event_name == 'pull_request_target' + run: gh issue edit "${NUMBER}" --add-assignee "${{ github.actor }}" --repo "${{ github.repository }}" + env: + NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Assign new internal pull requests to project id: add-to-project if: steps.is_elastic_member.outputs.result == 'true' && github.event_name == 'pull_request_target'