-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add Update Release Notes command #338
Conversation
Pull Request Test Coverage Report for Build 2979
💛 - Coveralls |
@yuvalbenshalom More critically, this includes the fix to allow markdown files to be added to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks very good.
see my comments.
pre_release=pre_release) | ||
update_pack_rn.execute_update() | ||
elif is_all and _pack: | ||
print_error(f"Please remove the --all flag when specifying only one pack.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
demisto_sdk/commands/update_release_notes/tests/update_rn_test.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/update_release_notes/tests/update_rn_test.py
Outdated
Show resolved
Hide resolved
else: | ||
name = os.path.basename(file_path) | ||
print_error(f"Could not find name in {file_path}") | ||
# sys.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for cases where a yml or json doesn't contain the entity name. I could remove the print, or make the message more clear if that works
|
||
@staticmethod | ||
def find_corresponding_yml(file_path): | ||
if file_path.endswith('.py'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question, should this be relevant to other files in the pack? why just py/yml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Py files don't have a file structure where I can extract the display name so I know that if we get a python file in the git diff, it's either a script or an integration which should have the display name in the yml. The code above is to load the yml file path so we can pull the display name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Status
Related Issues
fixes: demisto/etc#22984
Description
Added the
demisto-sdk update-release-notes
command.Must have