Skip to content

Commit e9c1b31

Browse files
committed
Redirect action
1 parent dc6bf12 commit e9c1b31

25 files changed

+2
-12784
lines changed

action/.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

action/.eslintrc.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

action/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

action/.gitignore

Lines changed: 0 additions & 99 deletions
This file was deleted.

action/.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

action/.prettierrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

action/LICENSE

Lines changed: 0 additions & 22 deletions
This file was deleted.

action/README.md

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1 @@
1-
# Generate Badge Action
2-
3-
By [customizing the code template](https://github.com/shuzijun/leetcode-editor/blob/master/doc/CustomCode.md), you can debug, run, and manage the subject code in a project, and you can also save and share these code files. The main function of this action is to cooperate with this project to generate badges for the progress of brushing questions for display, and other data can also be generated and shared based on other data in the future.
4-
5-
## Prerequisites
6-
7-
The premise of using this action is to use the [leetcode-editor](https://github.com/shuzijun/leetcode-editor) plugin, and the files pushed to github include the .idea\leetcode (or Pro version .idea\leetcode-pro) directory in the project directory
8-
9-
## configure
10-
11-
12-
| Configuration item | Explanation | Default value |
13-
| ---------------------- |-------------------------------------------------|----------------------------|
14-
| COMMIT_MESSAGE | Content to be filled in after adding badge push | Update progress badge |
15-
| COMMIT_EMAIL | Committer's email address | github-actions[bot] |
16-
| COMMIT_NAME | Committer name | leetcode-editor-bot |
17-
| BADGES_FILE | Append content file | README.md |
18-
| START_SECTION_FLAG | Start flag of append content area | <\!--START_SECTION_FLAG--> |
19-
| END_SECTION_FLAG | End marker of additional content area | <\!--END_SECTION_FLAG--> |
20-
| STATISTICS_DIRECTORY | Plugin's data file directory | .idea/leetcode/ |
21-
| LEETCODE_SITE | Leetcode's site | leetcode.com |
22-
23-
## Example
24-
25-
````yml
26-
name: CI
27-
28-
on:
29-
push:
30-
branches: [ master ]
31-
pull_request:
32-
branches: [ master ]
33-
34-
workflow_dispatch:
35-
36-
jobs:
37-
build:
38-
runs-on: ubuntu-latest
39-
40-
steps:
41-
- uses: actions/checkout@v3
42-
43-
- uses: ./action/
44-
with:
45-
STATISTICS_DIRECTORY: .idea/leetcode/
46-
LEETCODE_SITE: leetcode.cn
47-
````
48-
49-
## Effect
50-
![Progress](https://img.shields.io/static/v1?logo=leetcode&label=Progress&message=175%2F2643&color=brightgreen) ![Easy](https://img.shields.io/static/v1?logo=leetcode&label=Easy&message=57&color=5CB85C) ![Medium](https://img.shields.io/static/v1?logo=leetcode&label=Medium&message=106&color=F0AD4E) ![Hard](https://img.shields.io/static/v1?logo=leetcode&label=Hard&message=12&color=D9534F)
1+
Redirect https://github.com/shuzijun/leetcode-editor-action

action/README_ZH.md

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1 @@
1-
# 生成勋章行动
2-
3-
通过[自定义代码模板](https://github.com/shuzijun/leetcode-editor/blob/master/doc/CustomCode_ZH.md)可以在一个项目中调试、运行、管理题目代码,同时也可以将这些代码文件进行保存与分享。此行动的主要功能是配合这个项目,生成刷题进度的徽章进行展示,以后也可以根据其他数据生成其他数据进行分享。
4-
5-
## 前提
6-
7-
使用此行动的前提是使用了[leetcode-editor](https://github.com/shuzijun/leetcode-editor)插件,并且推送的到github上的文件包括项目目录下.idea\leetcode(或者Pro版本的.idea\leetcode-pro)目录
8-
9-
## 配置
10-
11-
12-
| 配置项 | 解释 | 默认值 |
13-
| ---------------------- | ---------------------------- |----------------------------|
14-
| COMMIT_MESSAGE | 添加完勋章推送时填写的内容 | Update progress badge |
15-
| COMMIT_EMAIL | 提交人的邮箱 | github-actions[bot] |
16-
| COMMIT_NAME | 提交人姓名 | leetcode-editor-bot |
17-
| BADGES_FILE | 追加内容的文件 | README.md |
18-
| START_SECTION_FLAG | 追加内容区域的开始标识 | <\!--START_SECTION_FLAG--> |
19-
| END_SECTION_FLAG | 追加内容区域的结束标识 | <\!--END_SECTION_FLAG--> |
20-
| STATISTICS_DIRECTORY | 插件的数据文件目录 | .idea/leetcode/ |
21-
| LEETCODE_SITE | 力扣的站点 | leetcode.com |
22-
23-
## 示例
24-
25-
```yml
26-
name: CI
27-
28-
on:
29-
push:
30-
branches: [ master ]
31-
pull_request:
32-
branches: [ master ]
33-
34-
workflow_dispatch:
35-
36-
jobs:
37-
build:
38-
runs-on: ubuntu-latest
39-
40-
steps:
41-
- uses: actions/checkout@v3
42-
43-
- uses: ./action/
44-
with:
45-
STATISTICS_DIRECTORY: .idea/leetcode/
46-
LEETCODE_SITE: leetcode.cn
47-
```
48-
49-
## 效果
50-
![Progress](https://img.shields.io/static/v1?logo=leetcode&label=Progress&message=175%2F2643&color=brightgreen) ![Easy](https://img.shields.io/static/v1?logo=leetcode&label=Easy&message=57&color=5CB85C) ![Medium](https://img.shields.io/static/v1?logo=leetcode&label=Medium&message=106&color=F0AD4E) ![Hard](https://img.shields.io/static/v1?logo=leetcode&label=Hard&message=12&color=D9534F)
1+
Redirect https://github.com/shuzijun/leetcode-editor-action

action/__tests__/main.test.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)