https://github.com/mezgoodle/format-repo
GitHub Action workflow to format your code and push to repository
https://github.com/mezgoodle/format-repo
actions git javascript python
Last synced: about 2 months ago
JSON representation
GitHub Action workflow to format your code and push to repository
- Host: GitHub
- URL: https://github.com/mezgoodle/format-repo
- Owner: mezgoodle
- License: mit
- Created: 2023-04-28T06:05:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T07:20:37.000Z (over 1 year ago)
- Last Synced: 2025-03-11T08:26:00.503Z (over 1 year ago)
- Topics: actions, git, javascript, python
- Language: JavaScript
- Homepage:
- Size: 492 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://sonarcloud.io/summary/new_code?id=mezgoodle_share-repo)
[](https://codecov.io/gh/mezgoodle/share-repo)
[](https://github.com/mezgoodle/share-repo/actions/workflows/blank.yml)
# Format repo
Hello! This is my project for [GitHub + DEV 2023 Hackathon](https://dev.to/devteam/announcing-the-github-dev-2023-hackathon-4ocn). 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
```yaml
- name: Run the action
uses: mezgoodle/format-repo@v1.0.0
with:
python: true
javascript: true
gitHubToken: ${{ secrets.TOKEN }}
projectFolder: 'src/'
```