Skip to content

Commit

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

on:
issues:
types: [opened, labeled, unlabeled]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
name: Get Issue
id: get_issue
with:
route: GET /repos/:repository/issues/:issue_number
repository: ${{ github.repository }}
issue_number: ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: MeilCli/hidable-comment-action@v1
with:
number: ${{ github.event.issue.number }}
show: ${{ contains(fromJson(steps.get_issue.outputs.data).labels.*.name, 'documentation') == false }}
id: 'label-lint'
body: |
label lint
- test1
- test2
- test3

0 comments on commit 0fbe6bf

Please sign in to comment.