Skip to content

Ephemeral message should inform the existence of a discord user with the email. #35

Ephemeral message should inform the existence of a discord user with the email.

Ephemeral message should inform the existence of a discord user with the email. #35

Workflow file for this run

name: phraseActions
on:
issue_comment:
types: created
jobs:
assign-commentor:
permissions:
issues: write
runs-on: ubuntu-latest
if: |
startsWith(github.event.comment.body, '/assignme') ||
startsWith(github.event.comment.body, '/assign me')
steps:
- name: Assigning to commenter
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \
-d '{"assignees":["${{ github.event.comment.user.login }}"]}'