Skip to content

Add core GitHub commands #1

@pcgeek86

Description

@pcgeek86

We need to fill out some of the core commands for interacting with GitHub.

Core

  • We need to figure out how to handle data pagination

Authentication

  • Support authentication in Microsoft Azure Automation runbook service, using PSCredential asset type
  • Encrypt GitHub Personal Access Token on-disk in JSON configuration file
  • Add support for multiple usernames and Personal Access Tokens
    • Enable user to switch between contexts
    • Enable user to specify a GitHub profile during each command call

Repositories

https://developer.github.com/v3/repos

  • List the authenticated user's GitHub repositories
  • List a specific user's public GitHub repositories
  • List all public repositories
  • Create new repositories
  • Edit / modify properties of existing repositories
  • Delete existing repositories
  • List contributors
  • List languages in project
  • List branches
  • Get a specific branch
  • List Git tags on a specific repository

Pull Requests

https://developer.github.com/v3/pulls/

  • View outstanding Pull Requests for an owner / repository
  • Merge one or more Pull Requests (one PowerShell command)
  • Update a Pull Request (title, description, state)
  • Create a Pull Request

Search

https://developer.github.com/v3/search/

  • Search for GitHub repositories
  • Search for GitHub issues
  • Search for GitHub users
  • Search for code

Issues

https://developer.github.com/v3/issues/

  • Create new GitHub issues
  • Close or re-open GitHub issues
  • List all or individual issues
  • Lock and unlock issues

Milestones

https://developer.github.com/v3/issues/milestones/

  • Create a milestone
  • List all milestones
  • Get a specific milestone
  • Update a milestone
  • Delete a milestone

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions