CI Take comment only assigns issue if there are not assignees
@@ -8,7 +8,9 @@ jobs:
one:
runs-on: ubuntu-latest
steps:
- - if: github.event.comment.body == 'take'
+ - if: >-
+ (github.event.comment.body == 'take' || github.event.comment.body == 'Take')
+ && !github.event.issue.assignee
name:
run: |
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
