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

Add support for annotating multiple gem lock files #86

Merged
merged 12 commits into from
May 12, 2021

Conversation

petervandoros
Copy link
Contributor

It's useful to be able annotate multiple Gemfile lock files in a single PR. It's especially useful when working with a dual booting system such as bootboot.

This PR adds support for annotating multiple Gemfile lock files.

Copy link
Member

@orien orien left a comment

Choose a reason for hiding this comment

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

🎉 Nice one!

spec/lib/unwrappr/github/pr_source_spec.rb Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
petervandoros and others added 2 commits May 12, 2021 09:42
Co-authored-by: Orien Madgwick <_@orien.io>
Copy link
Member

@orien orien left a comment

Choose a reason for hiding this comment

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

🚀

lib/unwrappr/cli.rb Outdated Show resolved Hide resolved
lib/unwrappr/cli.rb Outdated Show resolved Hide resolved
def self.run_unwapper_in_pwd(base_branch:)
return unless lockfile_present?
def self.run_unwapper_in_pwd(base_branch:, lock_files:)
return unless lockfiles_present?(lock_files)

puts "Doing the unwrappr thing in #{Dir.pwd}"
Copy link
Contributor

@johnsyweb johnsyweb May 12, 2021

Choose a reason for hiding this comment

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

It would be good to provide some feedback to show that each lockfile has been updated / evaluated.

Copy link
Contributor Author

@petervandoros petervandoros May 12, 2021

Choose a reason for hiding this comment

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

Good idea. Added in 24b143c.

Co-authored-by: Pete Johns <johnsyweb@users.noreply.github.com>
Copy link
Contributor

@johnsyweb johnsyweb left a comment

Choose a reason for hiding this comment

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

Thanks for this enhancement. I've made a few UX-based comments but otherwise, I'd be happy to release this.

Co-authored-by: Pete Johns <johnsyweb@users.noreply.github.com>
In some cases, only one of the specified lock files may
be present, which is enough for it to function.
@petervandoros
Copy link
Contributor Author

@johnsyweb @orien thanks for reviewing and providing feedback!

I think I've addressed all the feedback, so would be great if you could cast your eyes over the changes one more time?

Copy link
Contributor

@johnsyweb johnsyweb left a comment

Choose a reason for hiding this comment

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

Thank you.

@petervandoros petervandoros merged commit 1a619f6 into main May 12, 2021
@petervandoros petervandoros deleted the multiple-gem-lock-files branch May 12, 2021 02:54
@petervandoros
Copy link
Contributor Author

@johnsyweb Could you please publish the latest version of this gem when you get a chance?

@joesustaric
Copy link
Contributor

TIL bootboot.

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.

4 participants