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

Remove PR URLs when an issue is closed without merging #182

Merged
merged 3 commits into from
Sep 21, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Sep 11, 2023

This first does some refactoring before removing PR URLs when closing a PR without merging.

if pull_request['merged']:
target_branch = pull_request['base']['ref']
version_prefix = get_version_prefix_from_branch(target_branch)
if not version_prefix:
Copy link
Member

Choose a reason for hiding this comment

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

version_prefix can be '' which is false-y, but still a valid prefix, I guess you wanted is not None?

@ekohl ekohl merged commit 735c726 into theforeman:app Sep 21, 2023
@ekohl ekohl deleted the clear-redmine-on-close branch September 21, 2023 13:09
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.

2 participants