Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add issue open check #8236

Merged
merged 3 commits into from
Mar 24, 2021
Merged
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
34 changes: 34 additions & 0 deletions .github/workflows/issue-open-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Issue Open Check

on:
issues:
types: [opened, edited]

jobs:
check-issue:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/issues-helper@v2.2.0
id: check
with:
actions: 'check-issue'
issue-number: ${{ github.event.issue.number }}
title-excludes: '🐛[BUG], 👑 [需求], 🧐[问题]'

- if: steps.check.outputs.check-result == 'false'
uses: actions-cool/issues-helper@v2.2.0
with:
actions: 'create-comment, close-issue'
issue-number: ${{ github.event.issue.number }}
body: |
当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

- if: steps.check.outputs.check-result == 'true'
uses: actions-cool/issues-similarity-analysis@v1.0.0
with:
filter-threshold: 0.7
title-excludes: '🐛[BUG], 👑 [需求], 🧐[问题]'
comment-title: '### 以下的 Issues 可能会帮助到你 / The following issues may help you'
show-footer: false
44 changes: 0 additions & 44 deletions .github/workflows/reply-issue.yml

This file was deleted.

85 changes: 0 additions & 85 deletions tests/issue.js

This file was deleted.