Skip to content

Rig Bridge does not PTT or show PTT state #847

Rig Bridge does not PTT or show PTT state

Rig Bridge does not PTT or show PTT state #847

Workflow file for this run

name: Self Assign Issue
on:
issue_comment:
types: [created]
jobs:
self-assign:
if: github.repository == 'accius/openhamclock'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Assign commenter to issue
if: |
github.event.comment.body == '/assign' &&
github.event.issue.pull_request == null
uses: actions/github-script@v7
with:
script: |
const { actor } = context;
const issueNumber = context.issue.number;
// Assign the commenter
await github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
assignees: [actor]
});
// React with 👍 so they know it worked
await github.rest.reactions.createForIssueComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: context.payload.comment.id,
content: '+1'
});
console.log(`Assigned ${actor} to issue #${issueNumber}`);