GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - github/empty-repos: A GitHub Actions workflow to find empty repos

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SUPPORT.md
SUPPORT.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Empty Repos Workflow

A GitHub Actions workflow that scans all repositories in your organization once a month (or on-demand) and files an issue listing:

  • Repos that are completely empty (no files at root)
  • Repos that contain only a README at the root

This helps you spot neglected or placeholder repositories and take action (archive, populate, delete, etc.).

Features

  • Scheduled scan: runs at 00:00 UTC on the 1st of every month
  • Manual trigger: invoke from the Actions tab or via gh workflow run
  • Visibility filter: choose to scan all, public, or private repos
  • Auto-issue creation: opens a new issue with a Markdown table of results
  • Modular design: scanner logic separated into reusable script with comprehensive tests
  • Zero dependencies: uses actions/github-script, built-in scheduling and permissions

Installation

  1. Copy the workflow files from this repo:

    • .github/workflows/empty-repos.yml (main workflow)
    • scripts/empty-repos-scanner.js (scanner logic)
  2. Update the organization name to scan:

    env:
      SCAN_ORG: my-org-name    # ← set this to your GitHub org

Development

The scanner logic is separated into scripts/empty-repos-scanner.js for maintainability and testing.

Setting up your environment

  1. Install dependencies:
    npm install

Running Tests

npm test

Test Coverage

The test suite covers:

  • Empty repository detection
  • README-only repository detection
  • Visibility filtering (public/private/all)
  • Archived repository filtering
  • Various README file name patterns
  • Report generation
  • GitHub issue creation

Tests run automatically on pull requests via the .github/workflows/test.yml workflow.

License

MIT

More OSPO Tools

Looking for more resources for your open source program office (OSPO)? Check out the github-ospo repository for a variety of tools designed to support your needs.

About

A GitHub Actions workflow to find empty repos

Topics

innersourceospo

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

8 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.