{"id":31126584,"url":"https://github.com/guibranco/github-csharpier-linter-action","last_synced_at":"2026-02-16T19:36:01.016Z","repository":{"id":290447505,"uuid":"974451387","full_name":"guibranco/github-csharpier-linter-action","owner":"guibranco","description":"🎯 A reusable GitHub Action to automatically check and enforce C# code formatting using CSharpier","archived":false,"fork":false,"pushed_at":"2025-11-24T18:20:03.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-11T11:09:40.098Z","etag":null,"topics":["actions","csharpier","gh-actions","github","github-actions","hacktoberfest","linter"],"latest_commit_sha":null,"homepage":"http://guilherme.stracini.com.br/github-csharpier-linter-action/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guibranco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-28T19:53:33.000Z","updated_at":"2025-11-24T18:19:19.000Z","dependencies_parsed_at":"2025-04-28T22:43:15.531Z","dependency_job_id":"685ae315-1d09-4efa-bf15-68bddf7699af","html_url":"https://github.com/guibranco/github-csharpier-linter-action","commit_stats":null,"previous_names":["guibranco/github-csharpier-linter-action"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/guibranco/github-csharpier-linter-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-csharpier-linter-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-csharpier-linter-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-csharpier-linter-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-csharpier-linter-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guibranco","download_url":"https://codeload.github.com/guibranco/github-csharpier-linter-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-csharpier-linter-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","csharpier","gh-actions","github","github-actions","hacktoberfest","linter"],"created_at":"2025-09-17T22:53:55.642Z","updated_at":"2026-02-16T19:36:00.963Z","avatar_url":"https://github.com/guibranco.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub CSharpier Linter Action\n\n\u003cdiv align=\"center\"\u003e\n\n[![GitHub repo](https://img.shields.io/badge/GitHub-guibranco%2Fgithub--csharpier--linter--action-green.svg?style=flat-square\u0026logo=github)](https://github.com/guibranco/github-csharpier-linter-action)\n[![GitHub last commit](https://img.shields.io/github/last-commit/guibranco/github-csharpier-linter-action?color=green\u0026logo=github\u0026style=flat-square\u0026label=Last%20commit)](https://github.com/guibranco/github-csharpier-linter-action)\n[![GitHub license](https://img.shields.io/github/license/guibranco/github-csharpier-linter-action?color=green\u0026logo=github\u0026style=flat-square\u0026label=License)](https://github.com/guibranco/github-csharpier-linter-action)\n![CI](https://github.com/guibranco/github-csharpier-linter-action/actions/workflows/ci.yml/badge.svg)\n[![wakatime](https://wakatime.com/badge/github/guibranco/github-csharpier-linter-action.svg)](https://wakatime.com/badge/github/guibranco/github-csharpier-linter-action)\n\n\u003c/div\u003e\n\n## 📋 Overview\n\nA **GitHub Action** to automatically check and enforce **C# code formatting** using **[CSharpier](https://csharpier.com/)**. This action helps maintain clean code by running formatting checks and posting annotations, job summaries, and PR comments when issues are detected.\n\n## 🛠 Features\n\n- **Automatic formatting check**: Uses `dotnet csharpier check .` to validate the formatting of all C# files.\n- **Job summary**: Uploads a neat, easy-to-read summary in the GitHub Actions interface.\n- **Inline annotations**: Adds warnings in the code where formatting is incorrect.\n- **PR comments**: Posts a comment on the pull request with the list of issues detected.\n\n## 🧩 Usage\n\nYou can use this action in your workflows by referencing it as a reusable workflow:\n\n```yaml\njobs:\n  linter-check:\n    runs-on: ubuntu-latest\n    permissions:\n      pull-requests: write\n    steps:\n      - name: CSharpier Linter\n        uses: guibranco/github-csharpier-linter-action@v1.0.5\n```\n\n## ⚡ Requirements\n\n- **C#** files should be part of your repository.\n- Make sure your repository has `.cs` files, `.csproj`, or similar files that are relevant to the format.\n\n## 📝 Outputs\n\n- **Job summary**: Available in the PR Checks section, clearly summarizing the formatting issues.\n- **Annotations**: Warning annotations are placed on the lines where formatting issues are found.\n- **PR Comments**: An easy-to-read comment posted directly on the PR.\n\n## 💡 Example Workflow\n\nHere’s an example workflow that uses this action:\n\n```yaml\nname: Linter check\n\non:\n  workflow_dispatch:\n  pull_request:\n\njobs:\n  linter-check:\n    runs-on: ubuntu-latest\n    permissions:\n      pull-requests: write\n    steps:\n      - name: CSharpier Linter\n        uses: guibranco/github-csharpier-linter-action@v1.0.5\n```\n\n## 🔧 How It Works\n\n1. **Setup .NET**: Ensures that .NET SDK is installed.\n2. **Run CSharpier**: Runs `dotnet csharpier check .` and checks for any formatting issues.\n3. **Create Annotations and PR Comments**: If issues are found, the action creates inline annotations, a job summary, and a comment on the PR.\n\n## 🛠 Development\n\nTo contribute to this action:\n- Clone the repository and test locally.\n- Make sure to follow best practices for creating GitHub Actions.\n\n---\n\n### 🚀 Installation \u0026 Contribution\n\n- Clone this repo to use in your own workflows.\n- Feel free to open issues or submit pull requests to improve the action!\n\n## 🏆 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fgithub-csharpier-linter-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguibranco%2Fgithub-csharpier-linter-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fgithub-csharpier-linter-action/lists"}