Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add "take" comment command
  • Loading branch information
ShaharNaveh committed Jul 10, 2025
commit 860ce36e9ea2f5881cbe256495e2d99e4898761c
24 changes: 24 additions & 0 deletions .github/workflows/comment-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Comment Commands

on:
issue_comment:
types: created

jobs:
issue_assign:
if: (!github.event.issue.pull_request) && github.event.comment.body == 'take'
runs-on: ubuntu-latest

concurrency:
group: ${{ github.actor }}-issue-assign

permissions:
issues: write

steps:
- run: gh issue edit "${{ env.ISSUE_NUMBER }}" --add-assignee "${{ env.USER_LOGIN }}"
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
USER_LOGIN: ${{ github.event.comment.user.login }}
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
Comment thread
youknowone marked this conversation as resolved.
Loading