Thanks to visit codestin.com
Credit goes to github.com

Skip to content

shuzijun/leetcode-editor-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Generate Badge Action

By customizing the code template, 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 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

name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - uses: shuzijun/[email protected]
        with:
          STATISTICS_DIRECTORY: .idea/leetcode/
          LEETCODE_SITE: leetcode.cn

Effect

Progress Easy Medium Hard

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •