Skip to content

Commit

Permalink
Update auto-comment-on-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
UTSAVS26 authored Oct 3, 2024
1 parent 80df251 commit 3ed9a53
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/auto-comment-on-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,6 @@ jobs:
echo "Failed to add comment on issue open"
exit 1
fi
- name: Assign Issue to User
run: |
ASSIGNEES=$(cat <<EOF
{
"assignees": ["UTSAVS26"]
}
EOF
)
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \
-d "$ASSIGNEES")
cat response.json
if [ "$RESPONSE" -ne 201 ]; then
echo "Failed to assign user to issue"
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3ed9a53

Please sign in to comment.