{"id":17720064,"url":"https://github.com/yi-xu-0100/repo-list-generator","last_synced_at":"2026-03-04T20:03:36.443Z","repository":{"id":37798919,"uuid":"303083180","full_name":"yi-Xu-0100/repo-list-generator","owner":"yi-Xu-0100","description":"📃 The GitHub action that generate repository list for user or organization.","archived":false,"fork":false,"pushed_at":"2023-09-04T14:41:48.000Z","size":1790,"stargazers_count":15,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T12:43:40.217Z","etag":null,"topics":["action","generator","github","javascript","list","repo","repo-list"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/repo-list-generator","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/yi-Xu-0100.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}},"created_at":"2020-10-11T09:16:38.000Z","updated_at":"2025-03-21T03:27:15.000Z","dependencies_parsed_at":"2024-06-21T20:20:48.040Z","dependency_job_id":"c72ab271-8be6-48da-9204-88b0a4ea14d5","html_url":"https://github.com/yi-Xu-0100/repo-list-generator","commit_stats":{"total_commits":342,"total_committers":6,"mean_commits":57.0,"dds":"0.26023391812865493","last_synced_commit":"e877ba8607107db086235c47d073afdcc4040775"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"yi-Xu-0100/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-Xu-0100%2Frepo-list-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-Xu-0100%2Frepo-list-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-Xu-0100%2Frepo-list-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yi-Xu-0100%2Frepo-list-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yi-Xu-0100","download_url":"https://codeload.github.com/yi-Xu-0100/repo-list-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253817848,"owners_count":21969053,"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","generator","github","javascript","list","repo","repo-list"],"created_at":"2024-10-25T15:25:20.673Z","updated_at":"2026-03-04T20:03:36.403Z","avatar_url":"https://github.com/yi-Xu-0100.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡️ Repo List Generator GitHub Action\n\n[![sync2gitee(list)](\u003chttps://github.com/yi-Xu-0100/hub-mirror/workflows/sync2gitee(list)/badge.svg\u003e)](https://github.com/yi-Xu-0100/hub-mirror)\n[![test](https://github.com/yi-Xu-0100/repo-list-generator/workflows/test/badge.svg)](https://github.com/yi-Xu-0100/repo-list-generator/actions?query=workflow%3Atest)\n[![Github last commit](https://img.shields.io/github/last-commit/yi-Xu-0100/repo-list-generator)](https://github.com/yi-Xu-0100/repo-list-generator)\n[![Github latest release](https://img.shields.io/github/v/release/yi-Xu-0100/repo-list-generator)](https://github.com/yi-Xu-0100/repo-list-generator/releases)\n[![Github license](https://img.shields.io/github/license/yi-Xu-0100/repo-list-generator)](./LICENSE)\n\n[![views](https://raw.githubusercontent.com/yi-Xu-0100/traffic2badge/traffic/traffic-repo-list-generator/views.svg)](https://github.com/yi-Xu-0100/traffic2badge/tree/traffic#-repo-list-generator)\n[![views per week](https://raw.githubusercontent.com/yi-Xu-0100/traffic2badge/traffic/traffic-repo-list-generator/views_per_week.svg)](https://github.com/yi-Xu-0100/traffic2badge/tree/traffic#-repo-list-generator)\n[![clones](https://raw.githubusercontent.com/yi-Xu-0100/traffic2badge/traffic/traffic-repo-list-generator/clones.svg)](https://github.com/yi-Xu-0100/traffic2badge/tree/traffic#-repo-list-generator)\n[![clones per week](https://raw.githubusercontent.com/yi-Xu-0100/traffic2badge/traffic/traffic-repo-list-generator/clones_per_week.svg)](https://github.com/yi-Xu-0100/traffic2badge/tree/traffic#-repo-list-generator)\n\nThe GitHub action that generate repo list for user or organization.\n\n**The personal access token (PAT) is used to fetch all the repository list of the authenticated user. Guide in [here](#-generate-my_token).**\n\n## 🎨 Table of Contents\n\n- [🎨 Table of Contents](#-table-of-contents)\n- [🚀 Configuration](#-configuration)\n- [📝 Default example](#-default-example)\n- [📝 Example for get private repository](#-example-for-get-private-repository)\n- [🚀 More Related Usage](#-more-related-usage)\n- [📝 Use dependabot to keep action up-to-date](#-use-dependabot-to-keep-action-up-to-date)\n- [🙈 Generate `my_token`](#-generate-my_token)\n- [🔊 CHANGELOG](#-changelog)\n- [📄 LICENSE](#-license)\n\n## 🚀 Configuration\n\n```yml\ninputs:\n  user:\n    description: \u003e\n      Set up the user name to generate repository list.\n      It can be user or organization.\n      The 'owner/repository' will transform to 'owner'.\n    required: false\n    default: ${{ github.repository }}\n  max_page:\n    description: \u003e\n      Set up maxPage for request to generate repository list.\n      Default 100 repository per page can be fetched.\n    required: false\n    default: 10\n  my_token:\n    description: \u003e\n      Set up the personal access token (PAT).\n      The PAT is used to generate repository list for user or organization.\n    required: false\n    default: ${{ github.token }}\n  block_list:\n    description: \u003e\n      Set up the block_list for repoList.\n      The repositories in block_list will exclude in repository list.\n    required: false\n    default: ''\n  allow_empty:\n    description: \u003e\n      Set up whether allow empty repository for repoList.\n    required: false\n    default: false\n  allow_archived:\n    description: \u003e\n      Set up whether allow archived repository for repoList.\n    required: false\n    default: true\n\noutputs:\n  repo:\n    description: \u003e\n      Current repository name.\n  repoList:\n    description: \u003e\n      Repository list exclude private and fork.\n      Public(source without private) and no fork.\n  repoList_ALL:\n    description: \u003e\n      Repository list include private and fork.\n      Source(public and private) and fork\n  repoList_PRIVATE:\n    description: \u003e\n      Repository list include private.\n      Source(public and private) and no fork.\n  repoList_FORK:\n    description: \u003e\n      Repository list include fork.\n      Public(source without private) and fork.\n  privateList:\n    description: \u003e\n      Private repository list.\n      Only private(fork can not be private).\n  forkList:\n    description: \u003e\n      Fork repository list.\n      Only fork(private can not be fork).\n  emptyList:\n    description: \u003e\n      Empty repository list.\n      Default exclude in each list.\n  archivedList:\n    description: \u003e\n      Archived repository list.\n      Default include in each list.\n```\n\n## 📝 Default example\n\n**Default example use `GITHUB_TOKEN` to fetch public repository list for user or organization.**\n\n```yml\n- name: Get Repo List\n  id: repo\n  uses: yi-Xu-0100/repo-list-generator@v1.1.1\n  # with:\n  # (default)my_token: ${{ secrets.GITHUB_TOKEN }}\n  # (default)user: ${{ github.repository }}\n  # (default)max_page: 10\n  # (default)block_list:\n  # (default)allow_empty: false\n  # (default)allow_archived: true\n\n- name: Echo Output\n  run: |\n    echo repo: ${{steps.repo.outputs.repo}}\n    echo repoList: ${{steps.repo.outputs.repoList}}\n    echo repoList_ALL: ${{steps.repo.outputs.repoList_ALL}}\n    echo repoList_PRIVATE: ${{steps.repo.outputs.repoList_PRIVATE}}\n    echo repoList_FORK: ${{steps.repo.outputs.repoList_FORK}}\n    echo privateList: ${{steps.repo.outputs.privateList}}\n    echo forkList: ${{steps.repo.outputs.forkList}}\n    echo emptyList: ${{steps.repo.outputs.emptyList}}\n    echo archivedList: ${{steps.repo.outputs.emptyList}}\n```\n\n## 📝 Example for get private repository\n\n**This example use `REPO_TOKEN` to fetch private repository list for user or organization. The Guide to generate in [here](#-generate-my_token).**\n\n```yml\n- name: Get Repo List\n  id: repo\n  uses: yi-Xu-0100/repo-list-generator@v1.1.1\n  with:\n    my_token: ${{ secrets.REPO_TOKEN }}\n    # (default)user: ${{ github.repository }}\n    # (default)max_page: 10\n    # (default)block_list:\n    # (default)allow_empty: false\n    # (default)allow_archived: true\n\n- name: Echo Output\n  run: |\n    echo repo: ${{steps.repo.outputs.repo}}\n    echo repoList: ${{steps.repo.outputs.repoList}}\n    echo repoList_ALL: ${{steps.repo.outputs.repoList_ALL}}\n    echo repoList_PRIVATE: ${{steps.repo.outputs.repoList_PRIVATE}}\n    echo repoList_FORK: ${{steps.repo.outputs.repoList_FORK}}\n    echo privateList: ${{steps.repo.outputs.privateList}}\n    echo forkList: ${{steps.repo.outputs.forkList}}\n    echo emptyList: ${{steps.repo.outputs.emptyList}}\n    echo archivedList: ${{steps.repo.outputs.emptyList}}\n```\n\n## 🚀 More Related Usage\n\n**This action result can be used in the follow actions `static_list` generating.**\n\n- [yi-Xu-0100/hub-mirror](https://github.com/yi-Xu-0100/hub-mirror) use [Yikun/hub-mirror-action](https://github.com/Yikun/hub-mirror-action) to synchronize `GitHub` repositories to `Gitee`.\n- [yi-Xu-0100/traffic-to-badge](https://github.com/yi-Xu-0100/traffic-to-badge) use repositories `Insights/traffic` data to generate badges that include views and clones.\n\n## 📝 Use dependabot to keep action up-to-date\n\nThis file is build in [`./github/dependabot.yml`](./.github/dependabot.yml) to keep action up-to-date.\n\n```yaml\nversion: 2\nupdates:\n  # Maintain dependencies for GitHub Actions\n  - package-ecosystem: 'github-actions'\n    directory: '/'\n    schedule:\n      interval: 'daily'\n```\n\n## 🙈 Generate `my_token`\n\n\u003e This part is obtained from [yi-Xu-0100/traffic-to-badge](https://github.com/yi-Xu-0100/traffic-to-badge#-generate-my_token).\n\nYou'll first need to create a personal access token (PAT) which make the action having the access to the GitHub API of the authenticated user.\n\nYou can generate a PAT by going to `Settings(GitHub) -\u003e Developer Settings -\u003e Personal Access Tokens -\u003e Generate new token`, and will need to grant repo permission. For more information, see the [GitHub documentation](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).\n\nAfter you generated the PAT, go to `Settings(repository) -\u003e Secrets -\u003e New secret`, name the secret `REPO_TOKEN`, and copy the PAT into the box. Then, you can use the `${{ secrets.REPO_TOKEN }}` to fill with the input `my_token`.\n\n## 🔊 CHANGELOG\n\n- [CHANGELOG](./CHANGELOG.md)\n\n## 📄 LICENSE\n\n- [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-xu-0100%2Frepo-list-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyi-xu-0100%2Frepo-list-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyi-xu-0100%2Frepo-list-generator/lists"}