Skip to content

Add option to manage Autolink references on a repository #368

Open
@henkmeulekamp

Description

Feature Idea Summary

I would like the PowerShellForGitHub be able to manage the autolink references on a given repository.
https://docs.github.com/en/rest/repos/autolinks#create-an-autolink-reference-for-a-repository

{
"id": 1,
"key_prefix": "TICKET-",
"url_template": "https://example.com/TICKET?query=",
"is_alphanumeric": true
}

Feature Idea Additional Details

Add the following to get existing list of autolinks, create a new, or remove a given auto-reference

Example

Get-GitHubRepositoryAutoLink  [-OwnerName <String>] [-RepositoryName <String>] [-AccessToken <String>]

New-GitHubRepositoryAutoLink  [-OwnerName <String>] [-RepositoryName <String>] [-AccessToken <String>] 
  [-KeyPrefix <String>]  [-UrlTemplate <String>]  [-IsAlphaNumeric] 

Remove-GitHubRepositoryAutoLink  [-OwnerName <String>] [-RepositoryName <String>] [-AccessToken <String>] 
  [-AutoLinkId] <Int64> [-Force] [-WhatIf] [-Confirm]

Requested Assignment

  • If possible, I would like to implement this.

Operating System

OsName : Microsoft Windows 11 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 22000.1.amd64fre.co_release.210604-1628
OsLanguage : en-US
OsMuiLanguages : {en-US, en-GB}

PowerShell Version

Name Value


PSVersion 7.2.6
PSEdition Core
GitCommitId 7.2.6
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Module Version

Running:
Installed: 0.16.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    api completenessThis is basic API functionality that hasn't been implemented yet.api-repositoriesWork to complete the API's defined here: https://developer.github.com/v3/repos/enhancementAn issue or pull request introducing new functionality to the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions