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

feat(shorebird_cli): add getVersions to ShorebirdFlutter #1063

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

felangel
Copy link
Contributor

@felangel felangel commented Aug 8, 2023

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel self-assigned this Aug 8, 2023
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9e745ed) 100.00% compared to head (2db8f5a) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1063   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           84        84           
  Lines         3173      3179    +6     
=========================================
+ Hits          3173      3179    +6     
Files Changed Coverage Δ
...kages/shorebird_cli/lib/src/shorebird_flutter.dart 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


Future<List<String>> getVersions({String? revision}) async {
final result = await git.forEachRef(
format: '%(refname:short)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: is this format string something we want the caller to be responsible for or should it be owned by git? lgtm either way, just curious.

Copy link
Contributor Author

@felangel felangel Aug 8, 2023

Choose a reason for hiding this comment

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

I left it as is for the sake of flexibility but happy to adjust in the future if we find it's more convenient to keep it internal 👍

@felangel felangel merged commit a6fb9fc into main Aug 8, 2023
@felangel felangel deleted the feat/get-versions branch August 8, 2023 18:56
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