Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
list

GitHub Action

Repo-List-Generator

v0.0.2

Repo-List-Generator

list

Repo-List-Generator

Generate repo list for user or organization

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Repo-List-Generator

uses: yi-Xu-0100/[email protected]

Learn more about this action in yi-Xu-0100/repo-list-generator

Choose a version

⚡️ Repo List Generator GitHub Action

sync2gitee(cached) test Github last commit Github latest release Github license

The GitHub action that generate repository list for user.

The personal access token (PAT) used to fetch the repository. Guide in here.

🎨 Table of Contents

🚀 Configuration

inputs:
  user:
    description: 'Set up the user to generate repository list.'
    required: false
    default: ${{ github.actor }}
  maxPage:
    description: 'Set up maxPage for request to generate repository list.(default 100 repository per page.)'
    required: false
    default: 10
  my_token:
    description: 'Set up the personal access token (PAT) to generate repository list for user.'
    required: true

outputs:
  repoList:
    description: 'Repository list exclude private and fork'
  repoList_ALL:
    description: 'Repository list include private and fork'
  repoList_PRIVATE:
    description: 'Repository list include private'
  repoList_FORK:
    description: 'Repository list include fork'
  privateList:
    description: 'Private repository list exclude fork'
  privateList_ALL:
    description: 'Private repository list include fork'
  forkList:
    description: 'Fork repository list exclude private'
  forkList_ALL:
    description: 'Fork repository list include private'

📝 Example

This example use REPO_TOKEN to fetch repository list. The Guide in here.

- name: Get Repo List
  id: repo
  uses: ./
  with:
    my_token: ${{ secrets.REPO_TOKEN }}

🙈 Generate my_token

This part is obtained from yi-Xu-0100/traffic-to-badge.

You'll first need to create a personal access token (PAT) which make the action having the access to the GitHub API.

You can generate a PAT by going to Settings(GitHub) -> Developer Settings -> Personal Access Tokens -> Generate new token, and will need to grant repo permission. For more information, see the GitHub documentation.

After you generated the PAT, go to Settings(repository) -> Secrets -> New secret, name the secret REPO_TOKEN and copy the PAT into the box.

🔊 CHANGELOG

📄 LICENSE