From 2ba7237c988467a8fc2f7e01c5f71bb9de5bc43b Mon Sep 17 00:00:00 2001 From: parth-gr Date: Mon, 27 Jun 2022 20:24:13 +0530 Subject: [PATCH] ci: add ci bot for auto assign issue Now users can auto-assign issues by commenting /assign on the issue topic Closes: https://github.com/rook/rook/issues/10492 Signed-off-by: parth-gr --- .github/workflows/auto-assign.yaml | 17 +++++++++++++++++ Documentation/Contributing/development-flow.md | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/auto-assign.yaml diff --git a/.github/workflows/auto-assign.yaml b/.github/workflows/auto-assign.yaml new file mode 100644 index 000000000..5942656b3 --- /dev/null +++ b/.github/workflows/auto-assign.yaml @@ -0,0 +1,17 @@ +name: Assign issue to contributor +on: + issue_comment: + types: [created, edited] + +jobs: + assign: + name: Run self assign job + runs-on: ubuntu-latest + steps: + - name: take the issue + uses: bdougie/take-action@main + env: + GITHUB_TOKEN: ${{ github.token }} + with: + message: Thanks for taking this issue! Let us know if you have any questions! + trigger: /assign diff --git a/Documentation/Contributing/development-flow.md b/Documentation/Contributing/development-flow.md index 8b17e517a..a31bbe4db 100644 --- a/Documentation/Contributing/development-flow.md +++ b/Documentation/Contributing/development-flow.md @@ -77,6 +77,11 @@ git remote -v Now you should have at least `origin` and `upstream` remotes. You can also add other remotes to collaborate with other contributors. +### Self assign Issue + +You can self-assign any issue that is open and not assigned to anyone in Rook upstream repo, by adding +an issue comment with `/assign` in the body. + ## Layout A source code layout is shown below, annotated with comments about the use of each important directory: