Skip to content

PR: Refactor for API/Function signature inconsistency #24 🤦‍♂️ - #25

Merged
SimonLab merged 25 commits into
mainfrom
fix-api-inconsistency-issue-#24
May 12, 2022
Merged

SimonLab merged 25 commits into
mainfrom
fix-api-inconsistency-issue-#24

Conversation

@nelsonic

Copy link
Copy Markdown
Member

See: #24

@nelsonic

Copy link
Copy Markdown
Member Author

I've kinda broken the Gogs.local_branch_create/2 function ... so need to fix it first.
But it's one of the functions we want to refactor to require the org_name.
Hopefully, this won't be too painful. 🤞

@codecov

codecov Bot commented May 11, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #25 (ff54457) into main (f6d4658) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #25   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines           92        98    +6     
=========================================
+ Hits            92        98    +6     
Impacted Files Coverage Δ
lib/http.ex 100.00% <ø> (ø)
lib/git_mock.ex 100.00% <100.00%> (ø)
lib/gogs.ex 100.00% <100.00%> (ø)
lib/helpers.ex 100.00% <100.00%> (ø)
lib/httpoison_mock.ex 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6d4658...ff54457. Read the comment docs.

@nelsonic

Copy link
Copy Markdown
Member Author

With the work you did on #28 merged into this PR, I think we could totally merge it now. 🤞
Lemme just fix the failing test and will assign to you for review. ⏳

nelsonic and others added 4 commits May 11, 2022 14:43
Refactor helper function to use guard
Use mix dialyzer to check code errors
Define specification for functions in helper module
@nelsonic

Copy link
Copy Markdown
Member Author

Sadly, one of the tests is still failing:

image

https://github.com/dwyl/gogs/runs/6391663397?check_suite_focus=true#step:8:117
image

Tempted to just re-write this to make it pass!

@nelsonic

Copy link
Copy Markdown
Member Author

@SimonLab I've reviewed your additions and they look great!
Sadly I cannot approve the PR because I opened it ...

image

Please review/merge when you can tomorrow. Thanks.

@SimonLab SimonLab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 thanks for looking at the tests

@SimonLab
SimonLab merged commit 1be6f9e into main May 12, 2022
@SimonLab
SimonLab deleted the fix-api-inconsistency-issue-#24 branch May 12, 2022 06:43
@nelsonic

Copy link
Copy Markdown
Member Author

Merci @SimonLab 🙌☀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants