From d5706fcbef58868cb8bd6ee6f3af133ca4fdab3e Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Wed, 18 Feb 2026 14:38:06 +0100 Subject: [PATCH] :technologist: Add auto-assign for Combodo members --- .github/workflows/action.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 5e106ff9c..fdca1c0b9 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -26,13 +26,23 @@ jobs: fi - - name: Add internal tag if member + - name: Add internal tag if member of the organization if: env.is_member == 'true' run: | curl -X POST -H "Authorization: token ${{ secrets.PR_AUTOMATICALLY_ADD_TO_PROJECT }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/Combodo/iTop/issues/${{ github.event.pull_request.number }}/labels \ -d '{"labels":["internal"]}' + + - name: Set PR author as assignee if member of the organization + if: env.is_member == 'true' + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.PR_AUTOMATICALLY_ADD_TO_PROJECT }}" \ + https://api.github.com/repos/Combodo/iTop/issues/${{ github.event.pull_request.number }}/assignees \ + -d '{"assignees":["${{ github.event.pull_request.user.login }}"]}' env: is_member: ${{ env.is_member }} @@ -40,4 +50,4 @@ jobs: uses: actions/add-to-project@v1.0.2 with: project-url: ${{ env.project_url }} - github-token: ${{ secrets.PR_AUTOMATICALLY_ADD_TO_PROJECT }} \ No newline at end of file + github-token: ${{ secrets.PR_AUTOMATICALLY_ADD_TO_PROJECT }}