Skip to content

Latest commit

 

History

History
89 lines (57 loc) · 2.81 KB

CONTRIBUTING.md

File metadata and controls

89 lines (57 loc) · 2.81 KB

Contributing to this repository

Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved. We appreciate your thought to contribute to open source. ❤️ We want to make contributing as easy as possible. You are welcome to:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features

Getting started

Before you begin:

We Develop with Github

We use github to host code, to track issues and feature requests, as well as accept pull requests.

Pull Requests

Pull requests are the best way to propose changes to the codebase (we use Github Flow). We actively welcome your pull requests:

  1. Fork the repo and create your branch from the default branch.

    # Clone your fork of the repo into the current directory
    git clone https://github.com/<your-username>/<repo-name>
    # Navigate to the newly cloned directory
    cd <repo-name>
    # Assign the original repo to a remote called "upstream"
    git remote add upstream https://github.com/<upsteam-owner>/<repo-name>
    
    # Update the upstream
    git checkout <default-branch>
    git pull upstream <default-branch>
    
    # Create your feature / fix branch
    git checkout -b <topic-branch-name>
  2. If you've added code that should be tested, add tests.

  3. If you've changed APIs, update the documentation.

  4. Ensure the test suite passes.

  5. Make sure your code lints.

  6. Commit your changes, see conventional commits.

  7. Locally merge (or rebase) the upstream development branch into your topic branch.

    git pull [--rebase] upstream <dev-branch>
  8. Open a Pull Request with a clear title and description.

Development

Setup you local environment.

  1. Ensure you have the Node.js version we use, check .npmrc. You can easily run multiple NOde version with nvm.

  2. Install dependencies yarn install

  3. See the package.json how to run the test.

  4. Run locally, no tests yet available.

    # Overwrite defaults if needed
    export INPUT_README=<README>
    export INPUT_ACTIONFILE=<action.yml>
    export INPUT_TOCLEVEL=2
    yarn run watch

Use a Consistent Coding Style

  • we use spaces.
  • You can try running yarn run lint && yarn run format for style unification

License

By contributing, you agree that your contributions will be licensed under its MIT License.