Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 17 05:34
    47erbot labeled #48
  • Sep 17 05:34
    47erbot unlabeled #48
  • Sep 17 05:33
    47erbot labeled #48
  • Sep 17 05:33
    47erbot unlabeled #48
  • Sep 17 05:33
    47erbot labeled #48
  • Sep 17 05:33
    47erbot unlabeled #48
  • Sep 17 05:32
    47erbot labeled #48
  • Sep 17 05:32
    47erbot unlabeled #48
  • Sep 17 05:31
    47erbot labeled #48
  • Sep 17 05:31
    47erbot unlabeled #48
  • Sep 17 05:30
    47erbot labeled #48
  • Sep 17 05:30
    47erbot unlabeled #48
  • Sep 17 05:29
    47erbot labeled #48
  • Sep 17 05:29
    47erbot unlabeled #48
  • Sep 17 05:28
    47erbot labeled #48
  • Sep 17 05:28
    47erbot unlabeled #48
  • Sep 17 05:28
    47erbot labeled #48
  • Sep 17 05:28
    47erbot unlabeled #48
  • Sep 17 05:28
    47erbot labeled #48
  • Sep 17 05:28
    47erbot unlabeled #48
Daniel Capo Sobral
@dcsobral
Mind you, it might not be on one of the existing APIs, since I used HttpClient when writing the extra ones I needed.
Daniel Capo Sobral
@dcsobral
So, the issue is removeLabel, which passes label as part of the url (as per spec), but fails to url-encode it.
Ben Fradet
@BenFradet
mmh ok, weird. can you share the label?
Daniel Capo Sobral
@dcsobral
version: revision. It’s the space, specifically.
I’ve worked around it by calling http4s’s Uri.encode on it before passing it to g4s. It encodes the space, but not the colon. I’ve also confirmed it using curl.
zachkirlew
@zachkirlew
Hello everyone! I would like to submit a PR. How can I get get the access rights to do this?
Ben Fradet
@BenFradet
Hello, you'll need to fork the repository :+1:
https://github.com/firstcontributions/first-contributions might be a useful resource to get started
zachkirlew
@zachkirlew
thanks @BenFradet
zachkirlew
@zachkirlew
Submitted my first PR! 47degrees/github4s#528 . Little confused by the codecov report though... Impacted files are ones I haven't even changed 🤔
Ben Fradet
@BenFradet
yes it's because for external contributors , only part of the test suite is run. you don't have to worry about them
zachkirlew
@zachkirlew
alright thanks
Daniel Capo Sobral
@dcsobral
I’m having issues with every recently created repository, with labels failing to decode. Has anyone seen this?
Daniel Capo Sobral
@dcsobral
Dang. Id is not an int, it’s. a long.
Daniel Capo Sobral
@dcsobral
@BenFradet Do you think it would be possible to get a release out quickly to fix this? I mean, I can (will) submit a PR for it and it is a trivial change, but this broke my build infrastructure and I have to figure out quickly whether to go with a new github4s version fixing it or come up with something else.
Daniel Capo Sobral
@dcsobral
Oh, damn, this was fixed already.
Daniel Capo Sobral
@dcsobral
But not released.
Daniel Capo Sobral
@dcsobral
Are there published snapshots for master commits?
Daniel Capo Sobral
@dcsobral
Yep, sonatype snapshots. Got it.
Matthew Tovbin
@tovbinm
Hello, when is the next release of github4s?
Daniel Capo Sobral
@dcsobral
So, I cannot use the snapshot to solve my issue with label ids. I use github4s on a plugin, and since plugins cannot add a resolver I’d have to add the resolver to every project, instead of just changing the version (which I do automatically). I’d really like a new version of github4s, to get this fixed.
Juan Pedro Moreno
@juanpedromoreno
Daniel Capo Sobral
@dcsobral
Thanks!
zachkirlew
@zachkirlew
Hey everyone, when is the 0.26.0 release planned?
Ben Fradet
@BenFradet
there aren't any immediate plans afaik
Juan Pedro Moreno
@juanpedromoreno
zachkirlew
@zachkirlew
Tilman Zuckmantel
@tizuck

Hey guys! I am currently working with github4s and i have a problem that my program won't terminate. It is not stuck somewhere but after executing the last line of code it just won't stop. I figured out that it does terminate when i don't execute the code that fetches files from github. The methods that relate to github4s that i use are

private val TIMEOUT_DURATION = Duration(1,duration.SECONDS)

private val httpClient: Client[IO] = {
    val N_THREADS = 5
    val blockingPool = Executors.newFixedThreadPool(N_THREADS)
    val blocker = Blocker.liftExecutorService(blockingPool)
    implicit val cs: ContextShift[IO] = IO.contextShift(global)
    JavaNetClientBuilder[IO](blocker).create
  }

  private val accessToken = sys.env.get("GITHUB_TOKEN")
  private val gh = Github[IO](httpClient, accessToken)

gh.repos.getContents(...)
val response = getContents
        .unsafeRunTimed(TIMEOUT_DURATION)
        .getOrElse(throw new IOException(s"Unable to fetch content of: $path"))

Does anybody know if there might be some running thread problem here ? Thx.

Daniel Capo Sobral
@dcsobral
May I suggest enabling Github Discussions?
Ryan Peters
@sloshy
New release v0.28.0. Contains one significant breaking change due to the GitHub API removing basic auth, and a small bug fix for search query parameters. https://github.com/47degrees/github4s/releases/tag/v0.28.0
Albert Bikeev
@kell18
Hello people! Do you know if there is Search HTTP API implementation in the library somewhere?
Ryan Peters
@sloshy
@kell18 There is an issues search, but I believe that is it right now
Do you have a more specific feature request? Maybe a certain search endpoint or two? The API is rather large, and we tend to only add things on an as-needed basis so we can add your feature request if it's something specific and not all-encompassing.
Albert Bikeev
@kell18
Thanks for the reply @sloshy! We need to search for repositories and issues. Is there some work done on that? Or I'll consider adding that in the PR, if that works?
Albert Bikeev
@kell18
By the way, do you know where to get these authorizeUrl and accessTokenUrl for Github Enterprise? I don't use OAuth App nor Github App for authorization, just a user with a token in Atuhorisation header
Ryan Peters
@sloshy
@kell18 sorry for the late response - I didn't have gitter open yesterday, for some reason, and never noticed :sweat_smile:
4 replies
I can add repository search, if it is not already present. And, I will also look into your auth issue now to see what's up with that.
1 reply
Ryan Peters
@sloshy
@kell18 Alright, I was able to slap this together over what little free time I had the past day and a half between regular work + playing Hades. Next version of github4s should have repository search once this goes through! 47degrees/github4s#611
1 reply
Albert Bikeev
@kell18
Hi all! One question - how I can log what requests are sent to Github?
Albert Bikeev
@kell18
Okay, I deleted another question on how to search things using string-based Github DSL directly - I found a way to make it using Github4s DSL instead and assume that it's not possible to use original strings (like topic:abc) in query param of search methods (like issues.searchIssues) since they are get escaped 2 times so requests always return nothing... Please let me know if I'm wrong, I don't like using an extra DSL layer on top of quite good Github string-based DSL... Thank you anyway.
Alexander Van Hecke
@alexandervanhecke
hi, first of all, thanks for the excellent github4s lib!
quick question: v 0.28.5 was built for http4s 0.21.x, v 0.29.x is built for http4s 0.23.x
I'm trying to get github4s to work with http4s 0.22.x ... http4s people are suggesting to use this over 0.21
however, upgrading http4s to 0.22 and passing a client into github4s GitHub does not work
```Caused by: java.lang.NoSuchMethodError: 'org.http4s.Method$Semantics$Safe org.http4s.Method$.GET()'
at github4s.http.RequestBuilder$.apply$default$2(RequestBuilder.scala:23)
at github4s.http.HttpClient.$anonfun$get$1(HttpClient.scala:51)
at github4s.interpreters.StaticAccessToken.withAccessToken(StaticAccessToken.scala:28)
at github4s.http.HttpClient.get(HttpClient.scala:49)
at github4s.interpreters.RepositoriesInterpreter.getContents(RepositoriesInterpreter.scala:89)
is there a way around this? Can a release be made for 0.22?
rei mai
@reimai

Hi everyone,
what's your opinion on adding preview api calls to github4s?

In my project I wanted to merge master into pulls, and added an update-branch call to the local fork of githubs4s.
The call is actually 3 years old and it does not look like it's gonna be purged from the API. Although it might be.

Could I create a pull request with this addition to github4s, or it should be free of preview APIs? Or may be add a warning (deprecating the method?)

rei mai
@reimai
Or add an extra boolean parameter to the method, like yesIKnowThisIsExperimentalApi: Boolean