Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
steps:
- name: Echo Comment
run: |
echo "Comment: ${{ github.event.comment.body }}"
echo "Comment: ${{ github.event.comment.body }}"
101 changes: 101 additions & 0 deletions .github/workflows/slash-commands-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Specify commands for issues and pull requests
# ---------------------------------------------

hi:
# Post a comment, `{{ author }}` is an author placeholder
comment: hi @{{ author }}

wow:
# Post a comment
# `{{ args.* }}` is command args placeholder
# `{{ input }}` is command input placeholder
comment: wow {{ args.0 }}, and the command args is {{ input }}
# Reactions to be added to comment
reactions: ['+1']

heated:
# Lock the thread
lock: true
# Set a lock reason, such as `off-topic`, `too heated`, `resolved` or `spam`
lockReason: too heated
# Reactions to be added to comment
reactions: ['eyes', 'heart']
# Post a comment
comment: The thread has been temporarily locked.

unheated:
# Unlock the thread
unlock: true

label:
label:
# Add custom label
- static-label
# Space separated labels
- 'label-1 label-2'
# Add labels from args
- '{{ args.0 }}'
- '{{ args.1 }}'
- '{{ args.2 }}'

unlabel:
label:
# Remove custom label
- -static-label
# Remove labels from args
- '-{{ args.0 }}'
- '-{{ args.1 }}'
- '-{{ args.2 }}'
relabel:
label:
# Remove all labels
- -*
# add label from args
- '{{ input }}'

handover:
# handover issues/PRs to the given users
assign:
- '-*' # first remove all the old assignees
- '{{ input }}'
assign:
# assign issues/PRs to Jhon and the given users
assign:
- Jhon
- '{{ input }}'

# Optionally, specify commands just for issues
# --------------------------------------------
issues:
pin:
# Pin the issue
pin: true

unpin:
# UnPin the issue
unpin: true

feature:
# Close the issue
close: true
# Post a comment, `{{ author }}` is an author placeholder
comment: >
:wave: @{{ author }}, please use our idea board to request new features.


needs-more-info:
# Close the issue
close: true
# Post a comment, `{{ author }}` is author placeholder
comment: >
@{{ author }}

In order to communicate effectively, we have a certain format requirement for the issue, your issue is automatically closed because there is no recurring step or reproducible warehouse, and will be REOPEN after the offer.


# Optionally, specify commands just for pull requests
# ---------------------------------------------------
pulls:
hello:
# Post a comment, `{{ input }}` is command input placeholder
comment: hello {{ input }}
12 changes: 12 additions & 0 deletions .github/workflows/slash-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Slash Commands
on:
issue_comment:
types: [created]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/slash-commands@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: .github/workflows/slash-commands-config.yml
Empty file added test.py
Empty file.