{"id":15674861,"url":"https://github.com/djdefi/cloc-action","last_synced_at":"2025-04-15T17:47:14.241Z","repository":{"id":37007240,"uuid":"245543008","full_name":"djdefi/cloc-action","owner":"djdefi","description":"GitHub Action to Count Lines of Code with https://github.com/AlDanial/cloc","archived":false,"fork":false,"pushed_at":"2025-01-07T14:00:54.000Z","size":47,"stargazers_count":14,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T11:50:10.090Z","etag":null,"topics":["action","actions","cloc","lines-of-code"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djdefi.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-03-07T00:41:22.000Z","updated_at":"2025-01-07T14:01:27.000Z","dependencies_parsed_at":"2023-11-22T01:57:30.132Z","dependency_job_id":"1db4c424-c8dc-4c9c-ac5b-b9e3e9926ccc","html_url":"https://github.com/djdefi/cloc-action","commit_stats":{"total_commits":37,"total_committers":7,"mean_commits":5.285714285714286,"dds":"0.43243243243243246","last_synced_commit":"c58895c2335ed06134c05304ea6b9a88a7803053"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fcloc-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fcloc-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fcloc-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fcloc-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djdefi","download_url":"https://codeload.github.com/djdefi/cloc-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249124561,"owners_count":21216689,"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":["action","actions","cloc","lines-of-code"],"created_at":"2024-10-03T15:52:00.144Z","updated_at":"2025-04-15T17:47:14.222Z","avatar_url":"https://github.com/djdefi.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloc-action\nGitHub Action to Count Lines of Code with https://github.com/AlDanial/cloc\n\n## Example workflow:\n\n```yml\nname: Count Lines of Code\n\n# Controls when the action will run. Triggers the workflow on push or pull request \n# events but only for the main branch\non:\n  push:\n    branches: [ main ]\n  pull_request:\n    branches: [ main ]\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"build\"\n  cloc:\n    # The type of runner that the job will run on\n    runs-on: ubuntu-latest\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    steps:\n    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n    - uses: actions/checkout@v3\n\n    # Runs djdefi/cloc-action\n    - name: Count Lines of Code (cloc)\n      uses: djdefi/cloc-action@6\n```\n\n## Additional Options\n\nThe `cloc-action` allows you to provide additional options to customize your usage. These can be passed during the step execution in your workflow file. The options are passed to the underlying `cloc` tool.\n\nHere is an example of how to provide additional options:\n\n```yaml\n- name: Count Lines of Code with additional options\n  uses: djdefi/cloc-action@main\n  with:\n    options: --exclude-lang=YAML --md --report-file=cloc.md\n```\n\nIn the example above:\n\n`--exclude-lang=YAML` is used to exclude YAML files from the count.\n`--md` is used to generate the output in markdown format.\n`--report-file=cloc.md` is used to write the output to the `cloc.md` file.\n\nThese are just a few examples, other options are available based on your needs, some of which you can find in the [`cloc` documentation](https://github.com/AlDanial/cloc).\n\nNote: Please provide the options without any quotes. Any options requiring quotes should be escaped inside a string. For example, `options: \"--exclude-dir=path\\ to\\ folder\"`\n\nThis level of customization lets you control how `cloc` works based on the specific needs of your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdefi%2Fcloc-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdefi%2Fcloc-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdefi%2Fcloc-action/lists"}