Skip to content

Add Pull Request management cmdlets (New-GitHubPullRequest, Get-GitHubPullRequest, Set-GitHubPullRequest) #654

Description

Summary

The module has no dedicated Pull Request cmdlets. Scripts that need to create or query PRs must fall back to raw \Invoke-GitHubAPI\ calls, which is verbose and loses the benefits of typed output, tab completion, and discoverability.

Use cases observed in the wild

Proposed cmdlets

\\powershell
Get-GitHubPullRequest -Owner -Repository [-Head ] [-State <open|closed|all>] [-Context ]
New-GitHubPullRequest -Owner -Repository -Title -Head -Base [-Body ] [-Draft] [-Context ]
Set-GitHubPullRequest -Owner -Repository -PullNumber [-Title ] [-Body ] [-State <open|closed>] [-Context ]
\\

Output type: \GitHubPullRequest\ (new typed class, or reuse an existing one if it exists).

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