This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
A collection of PowerShell scripts for automating GitHub operations via the gh CLI and GitHub's GraphQL/REST APIs.
- gh CLI: Install with
winget install GitHub.cli, then authenticate with the required scopes:gh auth login --scopes read:project,read:org,project - PowerShell: Scripts use PowerShell syntax (
.ps1files)
# List issues in a GitHub Projects V2 board column
.\get-issues-on-project-board.ps1 -Org "your-org" -ProjectNumber 1
.\get-issues-on-project-board.ps1 -Org "your-org" -ProjectNumber 1 -ExcludeTeam "my-team"
.\get-issues-on-project-board.ps1 -Org "your-org" -ProjectNumber 1 -CsvPath "inbox.csv"- Scripts use
gh api graphqlfor GitHub Projects V2 queries andgh apifor REST endpoints - Pagination is handled manually with cursor-based GraphQL pagination and
--paginatefor REST - Scripts validate
ghavailability and exit early on errors withWrite-Error+exit 1
- Keep README.md up to date: When adding, removing, or changing a script's parameters/behaviour, update the corresponding section in README.md (usage examples, parameter table, and description)