microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
491 stars 84 forks source link

Add arg for changing pull request title #362

Closed mdanish-kh closed 1 year ago

mdanish-kh commented 1 year ago

Description of the changes

Need feedback

Since --prtitle for update command is only applicable when the --submit flag is used, then what if a user was to use --prtitle in the update command without setting the submit flag?

I looked at getting a native solution from CommandLineParser to handle this option dependency on another option, but couldn't find the capability in the module to do so. Related issue: https://github.com/commandlineparser/commandline/issues/3

The alternative would be to handle it manually in the code and print a localized warning message something like "Submit flag is not set. The value of title is ignored.", but since this seems like a harmless scenario I decided not to handle it. Please let me know if I am thinking wrong about any of this.


Microsoft Reviewers: Open in CodeFlow
ryfu-msft commented 1 year ago

/azp run

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).
ryfu-msft commented 1 year ago

/azp run

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).
ryfu-msft commented 1 year ago

/azp run

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).
mdanish-kh commented 1 year ago

Oopsies, found an unwanted change I mistakenly made in Resources.Designer.cs. Fixed in the recent commit.

ryfu-msft commented 1 year ago

/azp run

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).