{"id":21486912,"url":"https://github.com/ntsd/github-profile-repositories","last_synced_at":"2025-07-15T14:33:12.960Z","repository":{"id":49408968,"uuid":"430812930","full_name":"ntsd/github-profile-repositories","owner":"ntsd","description":"Automatically create repositories list for your Github Profile.","archived":false,"fork":false,"pushed_at":"2022-12-12T02:09:45.000Z","size":1033,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T10:45:16.526Z","etag":null,"topics":["github","github-actions","github-api","github-profile","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/github-profile-repositories","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/ntsd.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}},"created_at":"2021-11-22T17:59:47.000Z","updated_at":"2023-12-05T15:45:43.000Z","dependencies_parsed_at":"2023-01-27T10:45:37.263Z","dependency_job_id":null,"html_url":"https://github.com/ntsd/github-profile-repositories","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"111fa6a4ddf4bdd08eefce81bfd9494c35020182"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fgithub-profile-repositories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fgithub-profile-repositories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fgithub-profile-repositories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntsd%2Fgithub-profile-repositories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntsd","download_url":"https://codeload.github.com/ntsd/github-profile-repositories/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226047091,"owners_count":17565287,"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","github-actions","github-api","github-profile","hacktoberfest"],"created_at":"2024-11-23T13:24:45.120Z","updated_at":"2024-11-23T13:24:45.758Z","avatar_url":"https://github.com/ntsd.png","language":"TypeScript","readme":"# Github Profile Repositories\n\nName: `github-profile-repositories`\n\nAutomatically create repositories list for your Github Profile.\n\n## Template file\n\nThis action required a template file which it's required input `template-file`. The template file will render by [LiquidJS](https://liquidjs.com/).\nYou can find the example template file [here](https://github.com/ntsd/github-profile-repositories/blob/master/example/TEMPLATE.md).\nThe template file will render to required input `render-file`.\n\n### Template Parameters\n\nTemplate parameters will following data from Github GraphQL API. [Repository](https://docs.github.com/en/graphql/reference/objects#repository) and [PullRequest](https://docs.github.com/en/graphql/reference/objects#pullrequest)\n\n#### repositories\n\n```GraphQL\nrepositories [\n  {\n    name\n    url\n    stargazerCount\n    forkCount\n    isPrivate\n    description\n    createdAt\n    updatedAt\n    primaryLanguage {\n      name\n      color\n    }\n  }\n]\n```\n\n#### contributed\n\n```GraphQL\ncontributed [\n  {\n    name\n    url\n    stargazerCount\n    forkCount\n    isPrivate\n    description\n    createdAt\n    updatedAt\n    primaryLanguage {\n      name\n      color\n    }\n    owner {\n      login\n    }\n    contributions [\n      {\n        occurredAt\n        pullRequest {\n          title\n          url\n          createdAt\n          updatedAt\n          closed\n          closedAt\n          merged\n          mergedAt\n        }\n      }\n    ]\n  }\n]\n```\n\n## Inputs\n\n`github-token` - This action required Github Token which it's required input. The token will use to query owner repositories and contributions repositories to the [Github GraphQL API](https://docs.github.com/en/graphql). The token required scopes `repo:status`, `public_repo`, and `user:email` to commit the rendered file if need. `required`.\n\n`template-file` - The file template to render. `required`.\n\n`render-file` - The rendered out put file. `required`.\n\n`limit` - The limit number of repositories will render, max 25. `Default 10`.\n\n`repositories-order-by` - The method to sort the repositories list. Support (STARGAZERS|CREATED_AT|UPDATED_AT|PUSHED_AT|NAME). `Default STARGAZERS`.\n\n`contributed-order-by` - The method to sort the contributed repositories list. Support (STARGAZERS|OCCURRED_AT). `Default STARGAZERS`.\n\n## Examples\n\n### Simple\n\n```yml\nname: Generate Github Profile\non: push\n\njobs:\n  github-profile:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Github Profile Repositories\n        uses: ntsd/github-profile-repositories@master\n        with:\n          github-token: \"${{ secrets.MY_GITHUB_TOKEN }}\"\n          template-file: \"./TEMPLATE.md\"\n          render-file: \"./README.md\"\n      - name: Commit files\n        run: |\n          git config --local user.email \"ntsd@users.noreply.github.com\"\n          git config --local user.name \"ntsd\"\n          git commit -am \"docs: auto update README.md\"\n          git push\n```\n\n### Full configs\n\n```yml\nname: Generate Github Profile\non: push\n\njobs:\n  github-profile:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Github Profile Repositories\n        uses: ntsd/github-profile-repositories@master\n        with:\n          github-token: \"${{ secrets.MY_GITHUB_TOKEN }}\"\n          template-file: \"./TEMPLATE.md\"\n          render-file: \"./README.md\"\n          limit: 20\n          repositories-order-by: \"UPDATED_AT\"\n          contributed-order-by: \"OCCURRED_AT\"\n      - name: Commit files\n        run: |\n          git config --local user.email \"ntsd@users.noreply.github.com\"\n          git config --local user.name \"ntsd\"\n          git commit -am \"docs: auto update README.md\"\n          git push\n```\n\n## Resources\n\n\u003chttps://docs.github.com/en/graphql/overview/explorer\u003e\n\n\u003chttps://docs.github.com/en/graphql/reference/objects#contributionscollection\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntsd%2Fgithub-profile-repositories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntsd%2Fgithub-profile-repositories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntsd%2Fgithub-profile-repositories/lists"}