Browse Source

chore: add issues similarity analysis and dingtalk issue notice actions (#34583)

* chore: add Issues Similarity Analysis action

* Delete suggest-related-links.yml

* Create issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issue-sync-dingtalk.yml

* Update issues-similarity-analysis.yml
pull/34589/head
afc163 3 years ago
committed by GitHub
parent
commit
425ea1a92b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .github/workflows/issue-sync-dingtalk.yml
  2. 17
      .github/workflows/issues-similarity-analysis.yml
  3. 33
      .github/workflows/suggest-related-links.yml

17
.github/workflows/issue-sync-dingtalk.yml

@ -0,0 +1,17 @@
name: DingTalk Issues Notify
on:
issues:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: visiky/dingtalk-release-notify@main
with:
DING_TALK_TOKEN: ${{ secrets.DINGDING_BOT_TOKEN }}
notify_title: '🔥 @${{ github.event.issue.user.login }} 创建了 issue:{ title }'
notify_body: '{ body }'
notify_footer: '> 💬 欢迎前往 [**Ant Design GitHub Issues**]({ github.event.issue.url }) 进行讨论。'
at_all: false # whether to ding everybody

17
.github/workflows/issues-similarity-analysis.yml

@ -0,0 +1,17 @@
name: Issues Similarity Analysis
on:
issues:
types: [opened, edited]
jobs:
similarity-analysis:
runs-on: ubuntu-latest
steps:
- name: analysis
uses: actions-cool/issues-similarity-analysis@v1.0.0
with:
filter-threshold: 0.5
title-excludes: ''
comment-title: '### You may look for issues:'
comment-body: '${index}. ${similarity} #${number}'

33
.github/workflows/suggest-related-links.yml

@ -1,33 +0,0 @@
name: 'Suggest Related Links'
on:
issues:
types:
- opened
- edited
workflow_dispatch:
schedule:
- cron: '13 13 * * */7'
jobs:
suggest-related-links:
runs-on: ubuntu-18.04
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/actions-suggest-related-links-tmp
key: ${{ runner.os }}-action-${{ hashFiles('~/actions-suggest-related-links-tmp/training-data.json') }}
restore-keys: |
${{ runner.os }}-action-
- uses: peaceiris/actions-suggest-related-links@v1
- uses: peaceiris/actions-suggest-related-links/models/fasttext@v1
if: github.event_name == 'issues'
with:
version: v1
- uses: peaceiris/actions-suggest-related-links@v1
with:
mode: 'suggest'
repository: 'peaceiris/actions-gh-pages'
unclickable: true
Loading…
Cancel
Save