github / github/platform-samples

delete-empty-repos.sh - Handle Pagination

Open
#190 1 comment 0 reactions 0 assignees View on GitHub
bash enhancement help wanted
Dominant language
Shell
Stars
2.2k
Forks
1.9k
Avg merge
7d 19h
Merged PRs (30d)
1

Description

[delete-empty-repos.sh](https://github.com/github/platform-samples/blob/master/api/bash/delete-empty-repos.sh) currently works with default pagination of only 30 repositories.

Need to handle pagination in case of more than 30 repositories are within the organization.

[Relevant Doc](https://developer.github.com/v3/guides/traversing-with-pagination/)

Contributor guide

Open the contributing guide

Research direction

Read api/bash/delete-empty-repos.sh and the linked GitHub pagination guide first. Run it against an organization with more than 30 repositories, then verify that it processes all repositories rather than only the default page.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, shell
Domain
api, cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.