Skip to content

Commit

Permalink
refactor: split content & add remove labels (#31)
Browse files Browse the repository at this point in the history
* refactor: split content & add remove labels

* add

* add

* opt inactive check

* up web

* addadd

* change version

* add style

* add less
  • Loading branch information
xrkffgg authored Jan 7, 2021
1 parent 9867304 commit 026e812
Show file tree
Hide file tree
Showing 29 changed files with 1,857 additions and 1,512 deletions.
5 changes: 2 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ First of all, thank you for your contribution! 😄
- [ ] 新特性提交 / New feature
- [ ] bug 修复 / Fix bug
- [ ] 样式优化 / Style optimization
- [ ] 包体积优化 / Package size optimization
- [ ] 性能优化 / Performance optimization
- [ ] 代码风格优化 / Code style optimization
- [ ] 性能优化 / Performance optimization
- [ ] 构建优化 / Build optimization
- [ ] 网站、文档、Demo 改进 / Website, documentation, demo improvements
- [ ] 重构代码或样式 / Refactor code or style
- [ ] 测试相关 / Test related
- [ ] 其他 / Other

Expand Down Expand Up @@ -42,7 +42,6 @@ Describe changes from the user side, and list all potential break changes or oth
| 🇺🇸 English | |
| 🇨🇳 Chinese | |


### ☑️ 请求合并前的自查清单 / Self Check before Merge

⚠️ 请自检并全部**勾选全部选项**。/ Please check all items below before review. ⚠️
Expand Down
25 changes: 10 additions & 15 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ export default defineConfig({
children: ['/guide/index', '/guide/start'],
},
{
title: '🎁 参 考',
title: '🎁 参 考',
path: '/guide/ref',
},
{
title: '🎗 记 录',
path: '/guide/note',
},
{
title: '💬 FAQ',
path: '/guide/faq',
Expand All @@ -61,26 +65,17 @@ export default defineConfig({
children: ['/guide/index', '/guide/start'],
},
{
title: '🎁 Reference',
title: '🎁 Reference',
path: '/guide/ref',
},
{
title: '🎗 Note',
path: '/guide/note',
},
{
title: '💬 FAQ',
path: '/guide/faq',
},
],
},
styles: [
`
html {
scroll-behavior: smooth;
}
.markdown table {
width: auto !important;
}
.markdown table td:first-child {
font-weight: normal !important;
}
`,
]
});
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v1.8

`2021.01.07`

- [#31](https://github.com/actions-cool/issues-helper/pull/31)
- refactor: split content
- feat: add `remove-labels` for duplicate
- docs: optimize website

## v1.7

`2021.01.02`
Expand Down
53 changes: 27 additions & 26 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Add assigness
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
if: contains(github.event.issue.body, 'xxx') == false
steps:
- name: Add labels
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -140,7 +140,7 @@ Close the specified issue.

```yml
- name: Close issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
if: github.event.label.name == 'xxx'
steps:
- name: Create comment
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'create-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -249,7 +249,7 @@ According to [`comment-id`](#comment-id) delete the specified comment.

```yml
- name: Delete comment
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'delete-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
if: github.event.label.name == 'invalid'
steps:
- name: Lock issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'lock-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: mark-duplicate
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'mark-duplicate'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -324,6 +324,7 @@ jobs:
| token | [Token explain](#token) | string | ✔ |
| duplicate-command | Simple commands can be set, such as: `/d` | string | ✖ |
| duplicate-labels | Add additional labels to this issue | string | ✖ |
| remove-labels | Set removable labels | string | ✖ |
| labels | Replace the labels of the issue | string | ✖ |
| contents | Add [reaction](#reactions-types) for this comment | string | ✖ |
| close-issue | Whether to close the issue at the same time | string | ✖ |
Expand All @@ -339,7 +340,7 @@ Open the specified issue.

```yml
- name: Open issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'open-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -360,7 +361,7 @@ Remove the person designated by issue.

```yml
- name: Remove assignees
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'remove-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -383,7 +384,7 @@ Remove the specified labels.

```yml
- name: Remove labels
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -408,7 +409,7 @@ Replace the labels of issue.

```yml
- name: Set labels
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'set-labels'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -431,7 +432,7 @@ Unlock the specified issue.

```yml
- name: Unlock issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'unlock-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -464,7 +465,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Update comment
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'update-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -492,7 +493,7 @@ Update the specified issue according to the `issue-number`.

```yml
- name: Update issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'update-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -542,7 +543,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: welcome
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'welcome'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -585,7 +586,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -638,7 +639,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check-issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'check-issue'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -677,7 +678,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -711,7 +712,7 @@ Find the current warehouse issue No. 1, the creator is k and the content contain

```yml
- name: Find comments
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'find-comments'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -759,7 +760,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: lock-issues
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'lock-issues'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -805,7 +806,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: month-statistics
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'month-statistics'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -848,7 +849,7 @@ jobs:
if: github.event.label.name == 'watch'
steps:
- name: find comments
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
id: fcid
with:
actions: 'find-comments'
Expand All @@ -859,7 +860,7 @@ jobs:
- name: create comment
if: ${{ steps.fcid.outputs.comments.length == 0 }}
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -868,7 +869,7 @@ jobs:
- name: update comment
if: ${{ steps.fcid.outputs.comments.length == 1 }}
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
with:
actions: 'update-comment'
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -900,7 +901,7 @@ When the token is not filled in actions or the corresponding secrets are not add

```yml
- name: Create issue
uses: actions-cool/issues-helper@v1.7
uses: actions-cool/issues-helper@v1.8
id: createissue
with:
actions: 'create-issue'
Expand Down
Loading

0 comments on commit 026e812

Please sign in to comment.