Open yufeih opened 3 years ago
We would need this feature as well! +1
But I am not sure what the health state of nukeeper is.... is there still someone contributing?
Since I'm only using Bitbucket and GitHub, I need a few clarifications.
How can a work item be linked in AzureDevOps. Is it enough to have it in the commit message (like for Bitbucket) or is it an explicit action?
How is "auto completion for PRs opened by nukeeper" related to the work item? Is this another feature request?
Hi @msallin I did it on my fork of nukeeper: https://github.com/zplan/NuKeeper/commit/b5eb08e37945821c0a9456728e0f30f988ea9b40
Some notes:
I also looked into the "auto complete" topic and it looks like that it is already implemented
[Option(CommandOptionType.NoValue, ShortName = "", LongName = "setautomerge",
Description = "Set automatically auto merge for created pull request. Works only for Azure Devops. Defaults to false.")]
public bool? SetAutoMerge { get; set; }
I was also not aware of that but with the argument --setautomerge
it should do an autocomplete.
Because in AzureDevopsPlatform.cs it checks for AutoMerge and sets the AutoComplete:
if (request.SetAutoMerge)
{
await _client.SetAutoComplete(new PRRequest()
{
autoCompleteSetBy = new Creator(){ id = pullRequest.CreatedBy.id }
}, target.Owner,
repo.id,
pullRequest.PullRequestId);
}
Naming could be better :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🚀 Feature Requests
PRs in our azure devops repos must be linked to a work item. Today we manually link each PR. It would be very helpful if there is an option to set the work item ID and auto completion for PRs opened by nukeeper.
Platforms affected (mark all that apply)