From f774667c8e78b506b56e142415d65a05c6062852 Mon Sep 17 00:00:00 2001 From: Shivansh Bhatnagar Date: Tue, 4 Jun 2024 14:52:05 +0530 Subject: [PATCH] Minor Modifications --- .github/workflows/assign-on-comment.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/assign-on-comment.yml b/.github/workflows/assign-on-comment.yml index 57f33ca..7adbdf0 100644 --- a/.github/workflows/assign-on-comment.yml +++ b/.github/workflows/assign-on-comment.yml @@ -1,15 +1,18 @@ -name: Assign on Issue Comment - +# .github/workflows/take.yml +name: Assign issue to contributor on: issue_comment: - types: [created, edited] jobs: - one: + assign: + name: Take an issue runs-on: ubuntu-latest + permissions: + issues: write steps: - - name: Check for self-assignment comment - uses: bdougie/take-action@main - env: - GITHUB_TOKEN: ${{ secrets.ISSUE_TOKEN }} - ASSIGNMENT_KEYWORD: "/assign" # Replace with your desired keyword + - name: take the issue + uses: bdougie/take-action@main + with: + message: Thanks for taking this issue! Let us know if you have any questions! + trigger: /assign + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file