{"id":14982055,"url":"https://github.com/gulpjs/prettier_action","last_synced_at":"2025-10-03T01:30:40.998Z","repository":{"id":65997150,"uuid":"235199699","full_name":"gulpjs/prettier_action","owner":"gulpjs","description":"GitHub action for running prettier on your projects pull requests","archived":false,"fork":true,"pushed_at":"2020-05-09T01:56:28.000Z","size":40,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T00:55:59.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"creyD/prettier_action","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gulpjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-01-20T21:09:55.000Z","updated_at":"2023-09-03T23:31:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"370bd813-a819-4b90-851d-f2e66bc8ec89","html_url":"https://github.com/gulpjs/prettier_action","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.046875,"last_synced_commit":"71bcaf62101319a94cc7403ca9ddc5424be1ee17"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fprettier_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fprettier_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fprettier_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fprettier_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/prettier_action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235059234,"owners_count":18929279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T14:04:42.410Z","updated_at":"2025-10-03T01:30:40.710Z","avatar_url":"https://github.com/gulpjs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Prettier Action\n\n[![CodeFactor](https://www.codefactor.io/repository/github/creyd/prettier_action/badge/master)](https://www.codefactor.io/repository/github/creyd/prettier_action/overview/master)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![License MIT](https://img.shields.io/github/license/creyD/prettier_action)](https://github.com/creyD/prettier_action/blob/master/LICENSE)\n[![Latest Release](https://img.shields.io/github/v/release/creyD/prettier_action)](https://github.com/creyD/prettier_action/releases)\n[![Contributors](https://img.shields.io/github/contributors-anon/creyD/prettier_action)](https://github.com/creyD/prettier_action/graphs/contributors)\n[![Issues](https://img.shields.io/github/issues/creyD/prettier_action)](https://github.com/creyD/prettier_action/issues)\n\n\nA GitHub action for styling files with [prettier](https://prettier.io).\n\n## Usage\n\n### Parameters\n\n| Parameter | Required | Default | Description |\n| - | :-: | :-: | - |\n| dry | :x: | False | Runs the action in dry mode. Files wont get changed and the action fails if there are unprettified files. |\n| prettier_version | :x: | False | Specific prettier version (by default use latest) |\n| prettier_options | :x: | `--write **/*.js` | Prettier options (by default it applies to the whole repository) |\n| commit_options | :x: | - | Custom git commit options |\n| commit_message | :x: | Prettified Code! | Custom git commit message |\n| file_pattern | :x: | * | Custom git add file pattern |\n| branch (depreciated with 3.0)| :white_check_mark: | - | Always set this to `${{ github.head_ref }}` in order to work both with pull requests and push events |\n\n### Example Config\n\n```yaml\nname: Continuous Integration\n\n# This action works with pull requests and pushes\non:\n  pull_request:\n  push:\n    branches:\n    - master\n\njobs:\n  prettier:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n      with:\n        # Make sure the actual branch is checked out when running on pull requests\n        ref: ${{ github.head_ref }}\n\n    - name: Prettify code\n      uses: creyD/prettier_action@v2.2\n      with:\n        # This part is also where you can pass other options, for example:\n        prettier_options: --write **/*.{js,md}\n```\n\nMore documentation for writing a workflow can be found [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions).\n\n## Issues\n\nPlease report all bugs and feature request using the [GitHub issues function](https://github.com/creyD/prettier_action/issues/new). Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fprettier_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Fprettier_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fprettier_action/lists"}