https://github.com/shuzijun/leetcode-editor-action
https://github.com/shuzijun/leetcode-editor-action
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shuzijun/leetcode-editor-action
- Owner: shuzijun
- License: mit
- Created: 2022-05-23T23:29:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T02:41:23.000Z (almost 3 years ago)
- Last Synced: 2024-04-12T16:42:36.804Z (over 1 year ago)
- Language: TypeScript
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate Badge Action
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.
## Prerequisites
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
## configure
| Configuration item | Explanation | Default value |
| ---------------------- |-------------------------------------------------|----------------------------|
| COMMIT_MESSAGE | Content to be filled in after adding badge push | Update progress badge |
| COMMIT_EMAIL | Committer's email address | github-actions[bot] |
| COMMIT_NAME | Committer name | leetcode-editor-bot |
| BADGES_FILE | Append content file | README.md |
| START_SECTION_FLAG | Start flag of append content area | <\!--START_SECTION_FLAG--> |
| END_SECTION_FLAG | End marker of additional content area | <\!--END_SECTION_FLAG--> |
| STATISTICS_DIRECTORY | Plugin's data file directory | .idea/leetcode/ |
| LEETCODE_SITE | Leetcode's site | leetcode.com |## Example
````yml
name: CIon:
push:
branches: [ master ]
pull_request:
branches: [ master ]workflow_dispatch:
jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v3- uses: shuzijun/leetcode-editor-action@v0.1.1
with:
STATISTICS_DIRECTORY: .idea/leetcode/
LEETCODE_SITE: leetcode.cn
````## Effect
   