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

(#476) Add validation of input file path handler #577

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

AdmiringWorm
Copy link
Member

@AdmiringWorm AdmiringWorm commented Feb 8, 2024

Description

This updates how arguments are parsed when attempting to create a new
release. This disallows explicitly the use of a milestone, and an input
file path in the same call.

Related Issue

fixes #476

Motivation and Context

This is done as there was confusion on why specifying a input file path
was not using the release notes specified. This should make it clearer
to the caller what the issue is.

How Has This Been Tested?

  1. Run grm create --milestone 0.5.0 -i some-relase-notes.txt with additional valid arguments.
  2. Ensure an exception is thrown explaining that these two arguments can not be used together.

Screenshots (if appropriate):

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@AdmiringWorm AdmiringWorm self-assigned this Feb 8, 2024
@AdmiringWorm AdmiringWorm requested a review from gep13 February 8, 2024 17:12
@gep13 gep13 force-pushed the AdmiringWorm/issue476 branch from 3456e6a to 4df7b48 Compare February 12, 2024 20:35
This updates how arguments are parsed when attempting to create a new
release. This disallows explicitly the use of a milestone, and an input
file path in the same call.

This is done as there was confusion on why specifying a input file path
was not using the release notes specified. This should make it clearer
to the caller what the issue is.
@gep13 gep13 force-pushed the AdmiringWorm/issue476 branch from 4df7b48 to 641cf22 Compare February 12, 2024 20:47
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gep13 gep13 enabled auto-merge February 12, 2024 20:48
@gep13
Copy link
Member

gep13 commented Feb 12, 2024

@AdmiringWorm thank you very much for taking the time to fix this up!

@gep13 gep13 merged commit 3303c4c into GitTools:develop Feb 12, 2024
2 checks passed
gittools-bot pushed a commit that referenced this pull request Feb 12, 2024
Merge pull request #577 from AdmiringWorm/AdmiringWorm/issue476

(#476) Add validation of input file path handler
@AdmiringWorm AdmiringWorm deleted the AdmiringWorm/issue476 branch February 13, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating draft release with inputFilePath specified does not use content
2 participants