Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Fixes commit files method #1271

Merged
merged 2 commits into from
Mar 19, 2020
Merged

Fixes commit files method #1271

merged 2 commits into from
Mar 19, 2020

Conversation

fedefernandez
Copy link
Contributor

Found this issue in the sbt-hood and sbt-microsites releases. Concretely there are a couple of issues:

  • We swap the path and the contents (we should add some types here 😈)
  • With the last Github4s release, we need to manage the status code.

Copy link
Contributor

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

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

👍

@@ -79,7 +79,7 @@ class GitHubOps[F[_]: ConcurrentEffect: Timer](
path <- EitherT.right(Sync[F].delay(file.getAbsolutePath()))
content <- EitherT(Sync[F].delay(fileReader.getFileContent(path)))
relativePath <- EitherT.right(relativePath(file))
} yield (content, relativePath)
} yield (relativePath, content)
Copy link
Contributor

Choose a reason for hiding this comment

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

my bad :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, no worries, the real error is to have the (String, String) as response

@fedefernandez
Copy link
Contributor Author

Thanks @franciscodr

@fedefernandez fedefernandez merged commit 13f2528 into master Mar 19, 2020
@fedefernandez fedefernandez deleted the ff/fix-commit-files branch March 19, 2020 08:42
@calvellido
Copy link
Contributor

Sorry, I just noticed it, should this also be updated to 0.23.0?

https://github.com/47degrees/sbt-org-policies/blob/master/core/src/main/scala/sbtorgpolicies/libraries.scala#L29

@fedefernandez
Copy link
Contributor Author

@calvellido probably? Let's make a release with that updated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants