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

#410: added duration to latest commit for a remote branch to mob status #413

Merged
merged 7 commits into from
Apr 5, 2024

Conversation

hollesse
Copy link
Member

@hollesse hollesse commented Mar 18, 2024

closes #410

the result of the change can be seen here.

$ mob status
> you are on base branch 'main'
> remote wip branches detected:
  - origin/mob/main (10 months ago)
  - origin/mob/main-my-feature (1 year, 4 months ago)

if there is no remote wip branch:

$ mob status
> you are on base branch 'main'
> no remote wip branches detected!

@hollesse hollesse added the enhancement New feature or request label Mar 18, 2024
@gregorriegler
Copy link
Collaborator

yes and: see my commit


func TestStatusDetectsWipBranches(t *testing.T) {
output, configuration := setup(t)
start(configuration)
Copy link
Member Author

Choose a reason for hiding this comment

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

I would like to adjust the test that it does not depend on the empty commit when doing mob start. As I would like to remove this empty commit again.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, great!

status_test.go Outdated
git("checkout", "master")
time.Sleep(2 * time.Second)
Copy link
Collaborator

Choose a reason for hiding this comment

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

ouch, do we really need that?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so. On my machine i ran into the problem that it was exactly one second ago and the test failed. One other option would be to just assert ago or second what do you think?

@hollesse hollesse merged commit 3a717b8 into main Apr 5, 2024
12 checks passed
@gregorriegler gregorriegler deleted the 410-status-time branch April 8, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mob status should show if a mob session exists
2 participants