From f458423c1e5e9d56d939a0ea22f242fd3599c454 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sat, 29 Aug 2026 13:58:43 +0200 Subject: [PATCH] fix: specified github repository --- .github/workflows/smallbot.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/smallbot.yml b/.github/workflows/smallbot.yml index 2c0f194..e55d0f0 100644 --- a/.github/workflows/smallbot.yml +++ b/.github/workflows/smallbot.yml @@ -15,17 +15,18 @@ jobs: COMMENT: ${{ github.event.comment.body }} USER: ${{ github.event.comment.user.login }} ISSUE: ${{ github.event.issue.number }} + REPOSITORY: ${{ github.repository }} run: | COMMAND="${COMMENT#smallbot! }" if [ "$COMMAND" = "assign" ]; then - COUNT=$(gh issue view "$ISSUE" --json assignees --jq '.assignees | length') + COUNT=$(gh issue view "$ISSUE" --repo "$REPOSITORY" --json assignees --jq '.assignees | length') if [ "$COUNT" -eq 0 ]; then - gh issue edit "$ISSUE" --add-assignee "$USER" + gh issue edit "$ISSUE" --repo "$REPOSITORY" --add-assignee "$USER" fi fi if [ "$COMMAND" = "unassign" ]; then - ASSIGNED=$(gh issue view "$ISSUE" --json assignees --jq "[.assignees[].login] | index(\"$USER\")") + ASSIGNED=$(gh issue view "$ISSUE" --repo "$REPOSITORY" --json assignees --jq "[.assignees[].login] | index(\"$USER\")") if [ "$ASSIGNED" != "null" ]; then - gh issue edit "$ISSUE" --remove-assignee "$USER" + gh issue edit "$ISSUE" --repo "$REPOSITORY" --remove-assignee "$USER" fi fi \ No newline at end of file