-
Notifications
You must be signed in to change notification settings - Fork 374
37 lines (32 loc) · 943 Bytes
/
help-command.yml
File metadata and controls
37 lines (32 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Show Help for Commands
on:
push:
branches:
- "**" # Trigger on all branches, including feature branches
issue_comment:
types: [created]
workflow_dispatch:
inputs:
issue-number:
description: 'PR/Issue number to post the help comment to'
required: true
type: number
permissions:
issues: write
pull-requests: write
jobs:
show-help:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == '/help')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout
- name: Show Help Information
uses: shakacode/shared-actions/help-command@justin808-more-work-on-review-apps-2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.issue-number }}