{"id":24274594,"url":"https://github.com/rehborn/github-activity-svg","last_synced_at":"2025-03-05T08:31:37.466Z","repository":{"id":191655999,"uuid":"685283252","full_name":"rehborn/github-activity-svg","owner":"rehborn","description":"Generate Monthly Calendar SVGs for GitHub and Wakatime activities","archived":false,"fork":false,"pushed_at":"2023-09-02T11:31:26.000Z","size":11,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T18:56:07.212Z","etag":null,"topics":["github-action","github-contributions","github-profile","wakatime-stats"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/github-activity-svg","language":"Python","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/rehborn.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}},"created_at":"2023-08-30T22:35:12.000Z","updated_at":"2025-02-24T13:19:34.000Z","dependencies_parsed_at":"2023-08-31T00:40:29.079Z","dependency_job_id":null,"html_url":"https://github.com/rehborn/github-activity-svg","commit_stats":null,"previous_names":["rehborn/github-activity-svg"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehborn%2Fgithub-activity-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehborn%2Fgithub-activity-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehborn%2Fgithub-activity-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehborn%2Fgithub-activity-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehborn","download_url":"https://codeload.github.com/rehborn/github-activity-svg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241993258,"owners_count":20054489,"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":["github-action","github-contributions","github-profile","wakatime-stats"],"created_at":"2025-01-15T20:48:00.780Z","updated_at":"2025-03-05T08:31:37.432Z","avatar_url":"https://github.com/rehborn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Activity SVG\n\nGenerate Monthly Calendar SVGs for GitHub and Wakatime activies\n\n| \u003cimg height=\"12\" width=\"12\" src=\"https://cdn.simpleicons.org/github/000000/ffffff\" /\u003e Github | \u003cimg height=\"12\" width=\"12\" src=\"https://cdn.simpleicons.org/wakatime/000000/ffffff\" /\u003e Wakatime |\n|----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n|![GitHub](docs/github.svg)|![Wakatime](docs/wakatime.svg)|\n\n- enable GitHub Pages for the repository\n- optional: add `WAKATIME_JSON_URL` to repository secrets (create a JSON embed at [wakatime](https://wakatime.com/share/embed) `JSON`, `Coding Activity`)\n\n### Simple Action Usage\n```yaml      \n      - name: \"Run Github Activity Action\"\n        uses: rehborn/github-activity-svg@v0.0.1\n        with:\n          months: 12\n        env:\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          GH_ACTOR: ${{ github.actor }}\n          WAKATIME_JSON_URL: ${{ secrets.WAKATIME_JSON_URL }}\n```\n\nthe action will store all SVGs in `dist/`, output filenames suffix the index, \nstarting with 0 as the current month, going back in time as the index increases:   \n\n- `gitlab-0.svg` (this month)\n- `gitlab-1.svg` (last month)\n- `wakatime-0.svg`\n- `wakatime-1.svg`\n\n\n### Complete Example Creating Artifact and Pushing to GitHub Pages\n```yaml\nname: Run Github Activity Action\n\non:\n  workflow_dispatch:\n    inputs:\n      months:\n        type: choice\n        description: 'number of months to generate'\n        options:\n        - \"1\"\n        - \"2\"\n        - \"3\"\n        - \"6\"\n        - \"12\"\n        - \"24\"\n\n  schedule:\n    - cron: '0 0,12,18 * * *'\n\npermissions:\n  contents: read\n  pages: write\n  id-token: write\n\njobs:\n  generate-and-publish-svg:\n    name: Generate Activity SVGs and Publish to Github Pages\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: \"Run Github Activity Action\"\n        uses: rehborn/github-activity-svg@v0.0.1\n        with:\n          months: ${{ inputs.months || '3' }}\n        env:\n          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          GH_ACTOR: ${{ github.actor }}\n          WAKATIME_JSON_URL: ${{ secrets.WAKATIME_JSON_URL }}\n\n      - name: Upload Web artifact\n        uses: actions/upload-pages-artifact@v2\n        with:\n          path: ./dist/\n\n      - name: Deploying Web artifact\n        uses: actions/deploy-pages@v2\n```\n\n## Dependencies\n\n- [DrawSVG](https://github.com/cduck/drawsvg)\n- [requests](https://github.com/psf/requests)\n- [python-dotenv](https://github.com/theskumar/python-dotenv)\n- [python-dateutil](https://github.com/dateutil/dateutil)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehborn%2Fgithub-activity-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehborn%2Fgithub-activity-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehborn%2Fgithub-activity-svg/lists"}