{"id":17984109,"url":"https://github.com/shadowmoose/gha-loc-badge","last_synced_at":"2025-03-25T20:31:31.928Z","repository":{"id":65161712,"uuid":"258431682","full_name":"shadowmoose/GHA-LoC-Badge","owner":"shadowmoose","description":"Count project Lines of Code \u0026 generate a badge for display.","archived":false,"fork":false,"pushed_at":"2024-01-15T21:44:34.000Z","size":1144,"stargazers_count":37,"open_issues_count":5,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-26T11:35:17.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/shadowmoose.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":"2020-04-24T06:55:30.000Z","updated_at":"2024-10-21T13:40:26.000Z","dependencies_parsed_at":"2024-01-15T23:15:00.571Z","dependency_job_id":"fc32b5fc-872d-4037-bebf-b1b1970cfc33","html_url":"https://github.com/shadowmoose/GHA-LoC-Badge","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"ffaa6570e72aebe5ce0f1b6bd808be053f12604d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowmoose%2FGHA-LoC-Badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowmoose%2FGHA-LoC-Badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowmoose%2FGHA-LoC-Badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowmoose%2FGHA-LoC-Badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowmoose","download_url":"https://codeload.github.com/shadowmoose/GHA-LoC-Badge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222090823,"owners_count":16929472,"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-10-29T18:19:32.423Z","updated_at":"2024-10-29T18:19:33.437Z","avatar_url":"https://github.com/shadowmoose.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoC-Badge ![Generated Button](https://raw.githubusercontent.com/shadowmoose/GHA-LoC-Badge/image-data/badge.svg)\nCount project Lines of Code \u0026 generate a badge for display.\n\n## To use:\nIn a Github Action, download your project and run this action:\n\n```yaml\n      - name: Make Code Badge\n        uses: shadowmoose/GHA-LoC-Badge@1.0.0\n        id: badge\n        with:\n          debug: true\n          directory: ./\n          badge: ./output/badge.svg\n          patterns: '*.js'  # Patterns in the format of a '.gitignore' file, separated by pipes.\n          ignore: 'node_modules'\n```\n\nOnce the badge has been generated, use whatever tool you prefer to upload it somewhere.\nI personally prefer to push the badges to another branch of the project, where they can be linked easily.\n\nYou can [see a full example file that does this here.](./.github/workflows/main.yml)\n\nThe output badge can be customized. [Check out the input options here.](./action.yml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowmoose%2Fgha-loc-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowmoose%2Fgha-loc-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowmoose%2Fgha-loc-badge/lists"}