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: add stash command #101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

aymanbagabas
Copy link
Contributor

  • Add stash push
  • List
  • Show

Describe the pull request

A clear and concise description of what the pull request is about, i.e. what problem should be fixed?

Link to the issue:

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #101 (5e8facf) into master (77db94e) will increase coverage by 0.12%.
The diff coverage is 88.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
+ Coverage   83.48%   83.61%   +0.12%     
==========================================
  Files          29       30       +1     
  Lines        1841     1892      +51     
==========================================
+ Hits         1537     1582      +45     
- Misses        184      187       +3     
- Partials      120      123       +3     

- Add stash push
- List
- Show
Copy link
Member

@unknwon unknwon 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 the PR! Left some comments.

Copy link
Member

Choose a reason for hiding this comment

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

Could you convert all if err != nil to require.NoError/require.Error/assert.Error accordingly?

Comment on lines +56 to +58
if err != nil {
idx = -1
}
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean to have Index == -1? Should we ignore the line instead?

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