Skip to content

Commit

Permalink
Create check-issue-title-by-comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli authored Feb 28, 2021
1 parent 08f5566 commit 0d20637
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check-issue-title-by-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Check-Issue-Title-By-Comment'

on:
issues:
types: [opened, edited, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: MeilCli/regex-match@master
id: regex
with:
regex_pattern: 'test: .*'
regex_option: 'g'
search_string: ${{ github.event.issue.title }}
- uses: MeilCli/hidable-comment-action@master
with:
number: ${{ github.event.issue.number }}
show: ${{ steps.regex.outputs.matched == 'false' }}
id: 'title-lint'
body: 'title lint \n- test1\n- test2\n- test3'

0 comments on commit 0d20637

Please sign in to comment.