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

Reduce distro hardcoding #172

Merged
merged 3 commits into from
Apr 10, 2019
Merged

Reduce distro hardcoding #172

merged 3 commits into from
Apr 10, 2019

Conversation

nuclearsandwich
Copy link
Contributor

Opened as an alternative to #171.

This PR reducing the amount of rosdistro hard-coding in commit message formatting. There is only one change in the generated text (unless I've made an error) which is that commit messages for ROS 2 distributions will now say ros-ROSDISTRO, TIMESTAMP rather than ros2-ROSDISTRO, TIMEPSTAMP. I believe this change to be acceptable given the simplification it enables.

I would have liked to remove the last hard-coded list of active ROS and ROS 2 distros but I only gave myself 10 minutes to make this change. I'd have no problem if @allenh1 or @andre-rosa wanted to address the TODO before this is merged. I do not know when I would have time to return to it.

In case we decide to merge the incremental improvement I also added dashing to the final hard-coded list so this PR should replace #171 as-is with similar functionality.

@allenh1
Copy link
Collaborator

allenh1 commented Apr 9, 2019

@nuclearsandwich this looks much better to me -- I'm not really sure why I didn't do this in the first place, haha.

As for the TODO, resolving it later is fine with me.

Again, I'll let @tfoote decide which to merge. I'm leaning more towards this one at the moment, though.

@allenh1 allenh1 requested a review from tfoote April 9, 2019 14:00
@tfoote tfoote merged commit 1f41f6f into master Apr 10, 2019
@tfoote tfoote deleted the reduce-distro-hardcoding branch April 10, 2019 01:02
zffgithub pushed a commit to zffgithub/superflore that referenced this pull request Apr 11, 2023
* Refactor to avoid code changes for every new rosdistro.

* Add TODO for future enhancement.

* Add dashing.
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.

None yet

3 participants