From f6656e69a1b7394f5ca915b6082de8cf49f0815e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Kothe?= Date: Sat, 20 Sep 2025 12:35:01 -0300 Subject: [PATCH 1/2] ci(bot): add unassign command --- .github/workflows/comment-commands.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index e31d9ab343459..b2291f6e04887 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -18,6 +18,21 @@ jobs: - run: | echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees + issue_unassign: + runs-on: ubuntu-24.04 + if: (!github.event.issue.pull_request) && github.event.comment.body == 'unassign' + concurrency: + group: ${{ github.actor }}-issue-unassign + steps: + - run: | + echo "Removing ${{ github.event.comment.user.login }} from issue ${{ github.event.issue.number }} assignees" + curl -L \ + -X DELETE \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ + -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' preview_docs: runs-on: ubuntu-24.04 if: github.event.issue.pull_request && github.event.comment.body == '/preview' From 230cf6d6c199e282180fa82b5a3e9905930d9ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Kothe?= Date: Sat, 20 Sep 2025 12:40:04 -0300 Subject: [PATCH 2/2] docs(contributing): add `unassign` command to documentation --- doc/source/development/contributing.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 66178a88e3e31..dc346e810ecfc 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -42,8 +42,11 @@ text ``take`` to automatically assign you the issue (this will take seconds and may require refreshing the page to see it). If for whatever reason you are not able to continue working with the issue, please -unassign it, so other people know it's available again. You can check the list of -assigned issues, since people may not be working in them anymore. If you want to work on one +unassign it, so other people know it's available again. +On the GitHub issue, a comment with the exact text ``unassign`` +will automatically unassign yourself from the issue. +You can check the list of assigned issues, +since people may not be working in them anymore. If you want to work on one that is assigned, feel free to kindly ask the current assignee if you can take it (please allow at least a week of inactivity before considering work in the issue discontinued).