modarin256: a new 256-color skin for mc #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Review command | |
on: | |
issue_comment: | |
types: [ created ] | |
workflow_dispatch: | |
inputs: | |
issue_number: | |
description: Issue number | |
required: true | |
type: number | |
jobs: | |
review-issue: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment | |
if: ${{ ! github.event.issue.pull_request && (github.event.comment.body == '/review' && github.event.comment.author_association == 'MEMBER' || inputs.issue_number != '') }} | |
permissions: | |
issues: write | |
steps: | |
- run: | | |
gh issue edit \ | |
${{ inputs.issue_number != '' && inputs.issue_number || github.event.issue.number }} \ | |
--add-label "state: in review" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} |