Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support easy marking/unmarking of duplicate issues with new API's #317

Open
HowardWolosky opened this issue Feb 10, 2021 · 0 comments
Open
Labels
enhancement An issue or pull request introducing new functionality to the project. help wanted Anyone in the community is welcome to do this work up for grabs Anyone in the community is welcome to do this work

Comments

@HowardWolosky
Copy link
Member

Feature Idea Summary

GitHub allows you to mark an issue as a duplicate of another issue (as well as marking a pull request as a duplicate of another pull request) by adding the special phrase of Duplicate of #<num>. You can undo that marking of duplication by clicking "undo" on the timeline entry for that duplication notification.

We can ease this process for this module's users by exposing an API that automatically adds that Issue/PR comment directly to the item.

Feature Idea Additional Details

Initial thoughts on API structure:

Set-GitHubIssueAsDuplicate [[-OwnerName -RepositoryName] || [RepositoryUrl]] -Issue -DuplicateTo

In theory, Get-GitHubEvent should give us the ability to find the duplicate event for the "undo" scenario, but this still needs to be tested/verified. We also need to see what command that "Undo" button is actually sending, as I'm not seeing anything in the documentation about how to handle an undo.

Requested Assignment

I'm just suggesting this idea, but don't want to implement it.

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 2004
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.610
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.610
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module Version

Running: 0.16.0
Installed:
@HowardWolosky HowardWolosky added enhancement An issue or pull request introducing new functionality to the project. up for grabs Anyone in the community is welcome to do this work help wanted Anyone in the community is welcome to do this work labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue or pull request introducing new functionality to the project. help wanted Anyone in the community is welcome to do this work up for grabs Anyone in the community is welcome to do this work
Projects
None yet
Development

No branches or pull requests

1 participant