Skip to content
edit

GitHub Action

Format repo

v1.0.0 Latest version

Format repo

edit

Format repo

Format Python and JS code and auto-commit to your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Format repo

uses: mezgoodle/format-repo@v1.0.0

Learn more about this action in mezgoodle/format-repo
Choose a version

Quality Gate Status codecov Test action

Format repo

Hello! This is my project for GitHub + DEV 2023 Hackathon. I created an action that formats the code in Python and JavaScript and automatically pushes the corrected code to the repository.

Inputs

githubToken

Required The GitHub Token with repo:scope.

python

Not required Flag to format python code.

javascript

Not required Flag to format javascript code.

projectFolder

Not required Path to the project folder.

Example usage

- name: Run the action
  uses: mezgoodle/format-repo@v1.0.0
  with:
    python: true
    javascript: true
    gitHubToken: ${{ secrets.TOKEN }}
    projectFolder: 'src/'