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: adding message with link to the release when releasing an existing release #1891

Merged
merged 7 commits into from
Apr 15, 2024

Conversation

erickzanardo
Copy link
Contributor

Description

Adds a new message to the shorebird release [any] that will print a link to the release on the console when trying to run release in a version number that already exists!

Fixes #1890

Output

Screenshot 2024-04-12 at 15 52 20

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

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.93%. Comparing base (b40336b) to head (1f1e6ed).

Additional details and impacted files
@@             Coverage Diff              @@
##              main    #1891       +/-   ##
============================================
- Coverage   100.00%   87.93%   -12.07%     
============================================
  Files          173      174        +1     
  Lines         5446     5454        +8     
============================================
- Hits          5446     4796      -650     
- Misses           0      658      +658     
Flag Coverage Δ
shorebird_cli 84.42% <100.00%> (-15.58%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@eseidel
Copy link
Contributor

eseidel commented Apr 12, 2024

The links aren't secret, btw. :) You don't need to scratch yours out. We separately have a bug about doing a better job of hiding potentially sensitive information in our logs: #1770


void main() {
group('ShorebirdWebConsole', () {
test('linkTo returns the expected link to the root of the site', () {
Copy link
Contributor

@felangel felangel Apr 15, 2024

Choose a reason for hiding this comment

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

Suggested change
test('linkTo returns the expected link to the root of the site', () {
test('linkTo returns the correct link relative to the root of the console', () {

Copy link
Contributor

@eseidel eseidel left a comment

Choose a reason for hiding this comment

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

lgtm with felix's link change.

Copy link
Contributor

@bryanoltman bryanoltman left a comment

Choose a reason for hiding this comment

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

Left a couple nits, but LGTM otherwise!

packages/shorebird_cli/lib/src/shorebird_web_console.dart Outdated Show resolved Hide resolved
packages/shorebird_cli/lib/src/shorebird_web_console.dart Outdated Show resolved Hide resolved
Co-authored-by: Felix Angelov <felix@shorebird.dev>
@erickzanardo erickzanardo enabled auto-merge (squash) April 15, 2024 19:49
@erickzanardo erickzanardo merged commit 71d67df into main Apr 15, 2024
10 of 11 checks passed
@erickzanardo erickzanardo deleted the feat/link-to-console-existing-release branch April 15, 2024 19:58
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.

feat: "you already have an existing release" message could be clearer
4 participants