{"id":24460943,"url":"https://github.com/talljack/daily-code-stats","last_synced_at":"2025-07-17T14:08:05.200Z","repository":{"id":211231104,"uuid":"720428582","full_name":"Talljack/daily-code-stats","owner":"Talljack","description":"Nodejs script to count your codes today","archived":false,"fork":false,"pushed_at":"2025-07-13T02:00:31.000Z","size":806,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-13T04:09:56.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Talljack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-11-18T13:09:22.000Z","updated_at":"2025-07-13T02:00:35.000Z","dependencies_parsed_at":"2023-12-21T04:22:11.195Z","dependency_job_id":"657d328b-37d0-4a3c-b1e7-078045838011","html_url":"https://github.com/Talljack/daily-code-stats","commit_stats":null,"previous_names":["talljack/daily-code-stats"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Talljack/daily-code-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fdaily-code-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fdaily-code-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fdaily-code-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fdaily-code-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talljack","download_url":"https://codeload.github.com/Talljack/daily-code-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2Fdaily-code-stats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265614332,"owners_count":23798427,"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":"2025-01-21T04:16:34.939Z","updated_at":"2025-07-17T14:08:05.191Z","avatar_url":"https://github.com/Talljack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily Codes Stats\n\nA Nodejs script to count your daily codes, and it will auto-update daily code stats on your README.md.\n\nYou can use this action to your homepage repo, and it will update your README.md every day. Example: [Talljack](https://github.com/Talljack/Talljack/blob/main/.github/workflows/code-stats.yml)\n\n## Usage\n\n```yml\nname: daily-code-stats\non:\n  schedule:\n    - cron: '0 0 * * *' # 每天运行一次\njobs:\n  daily-code-stats:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Set up Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: '18'\n\n      - name: Daily Codes Stats\n        uses: Talljack/daily-code-stats@main\n\n        env:\n          token: ${{secrets.GITHUB_TOKEN}} # 使用存储在仓库 Secrets 中的 GitHub 令牌\n\n      - name: Commit files\n        id: commit-files\n        run: |\n          if [ -n \"$(git status --porcelain README.md)\" ]; then\n            git config --local user.email \"github-actions[bot]@users.noreply.github.com\"\n            git config --local user.name \"github-actions[bot]\"\n            git add README.md\n            git commit -m \"Update README.md\"\n            echo \"hasChange=true\" \u003e\u003e $GITHUB_OUTPUT\n          else\n            echo \"No Changes\"\n          fi\n\n      - name: Push changes\n        uses: ad-m/github-push-action@master\n        if: ${{ steps.commit-files.outputs.hasChange == 'true' }}\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          branch: ${{ github.ref }}\n```\n\nUsually, you can add this action to your homepage repo, and it will update your README.md every day.\n\n![Talljack daily code](image.png)\n\n## Inputs\n\n- `token` - Your `GITHUB_TOKEN`. This is required. Why do we need a `token`? Read more here: [About the GITHUB_TOKEN secret](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret). Default: `${{ github.token }}`\n\n## Outputs\n\n- `dailyCodeInfo` - The daily code info. JSON string. Example: `{\"username\": \"Talljack\", \"2023-12-06\": {\"additions\": 66, \"deletions\": 66}}`\n\n## License\n\nLicensed under the [MIT License](LICENSE).\n\n\u003c!-- START_STATS --\u003e\n\n## Talljack Daily Code Statistics\n\n| Date       | Addition Codes | Deletion Codes |\n|------------|-----------|-----------|\n| 2025-07-16 | 0 | 0 |\n\n\u003c!-- END_STATS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fdaily-code-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalljack%2Fdaily-code-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fdaily-code-stats/lists"}