Skip to content

Include flag inputs for archived/fork #3

@rbarker-dev

Description

@rbarker-dev

gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].name' > repo-list.txt

ARCHIVED_FLAG="false"
FORKS_FLAG="false"

if [[ "${INCLUDE_ARCH}" == "true" ]]; then
  ARCHIVED_FLAG="true"
fi

if [[ "${INCLUDE_FORK}" == "true" ]]; then
  FORKS_FLAG="true"
fi

gh search repos  --archived="${ARCHIVED_FLAG}" --include-forks="${FORKS_FLAG}" --owner="${ORG_NAME}" --limit 1000 --json name --jq '.[] .name' > repo-list.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions