{"id":19235326,"url":"https://github.com/julia-actions/julia-format","last_synced_at":"2026-06-07T11:01:05.714Z","repository":{"id":55582788,"uuid":"207013798","full_name":"julia-actions/julia-format","owner":"julia-actions","description":"GitHub action for JuliaFormatter.jl","archived":false,"fork":false,"pushed_at":"2024-08-15T19:11:06.000Z","size":52,"stargazers_count":46,"open_issues_count":7,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-23T01:51:11.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julia-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-07T19:05:19.000Z","updated_at":"2025-02-15T19:02:40.000Z","dependencies_parsed_at":"2024-04-09T17:01:14.161Z","dependency_job_id":"c3b6fcad-22c8-4b4b-a3d8-8206feb70ccf","html_url":"https://github.com/julia-actions/julia-format","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julia-actions%2Fjulia-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julia-actions%2Fjulia-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julia-actions%2Fjulia-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julia-actions%2Fjulia-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julia-actions","download_url":"https://codeload.github.com/julia-actions/julia-format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240317416,"owners_count":19782388,"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-11-09T16:16:36.146Z","updated_at":"2026-06-07T11:01:05.688Z","avatar_url":"https://github.com/julia-actions.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# julia-format\n\n## Setup workflow with `julia-format` action\n\n\u003e [!IMPORTANT]\n\u003e Starting with v3 of this action, unformatted code in files that are not part of the current PR will cause the action to fail.\n\nSave the following code as `Format.yml` in the `.github/workflows/` directory in your repository.\n\n```yaml\nname: Format suggestions\non:\n  pull_request:\n    # this argument is not required if you don't use the `suggestion-label` input\n    types: [ opened, reopened, synchronize, labeled, unlabeled ]\njobs:\n  code-style:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: julia-actions/julia-format@v4\n        with:\n          version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1')\n          suggestion-label: 'format-suggest' # Leave this unset or empty to show suggestions for all PRs\n          paths: 'src/, test/' # Leave this unset to format every file\n```\n\nWith this workflow, [reviewdog](https://github.com/reviewdog/reviewdog) will automatically post code suggestions to pull requests in your repository, based on the formatting rules defined by [JuliaFormatter.jl](https://github.com/domluna/JuliaFormatter.jl).\n\n## Another possible workflow without `julia-format` action\n\nYou can also create another workflow like this:\n\n```yaml\nname: format-pr\non:\n  schedule:\n    - cron: '0 0 * * *'\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: julia-actions/cache@v2\n      - name: Install JuliaFormatter and format\n        run: |\n          julia  -e 'import Pkg; Pkg.add(\"JuliaFormatter\")'\n          julia  -e 'import JuliaFormatter; JuliaFormatter.format(\".\")'\n\n      # https://github.com/marketplace/actions/create-pull-request\n      # https://github.com/peter-evans/create-pull-request#reference-example\n      - name: Create Pull Request\n        id: cpr\n        uses: peter-evans/create-pull-request@v3\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          commit-message: Format .jl files\n          title: 'Automatic JuliaFormatter.jl run'\n          branch: auto-juliaformatter-pr\n          delete-branch: true\n          labels: formatting, automated pr, no changelog\n      - name: Check outputs\n        run: |\n          echo \"Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}\"\n          echo \"Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}\"\n```\n\nThis workflow does not check the code in PRs, but creates PRs to fix the format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulia-actions%2Fjulia-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulia-actions%2Fjulia-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulia-actions%2Fjulia-format/lists"}