You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going round in circles when trying to create a new repo:
Suppose I'm given the repo name "test"
myRepoName::String
myRepoName ="test"
Then I'd like to instantiate a NewRepo
let nr =NewRepo {
newRepoName = myRepoName,
newRepoDescription =Nothing,
newRepoHomepage =Nothing,
newRepoPrivate =JustFalse,
newRepoHasIssues =JustTrue,
newRepoHasWiki =JustTrue,
newRepoAutoInit =JustTrue
}
let auth =GitHub.OAuth"abcdef"GitHub.createRepo' auth nr
But newRepoName wants the type Name Repo and I don't quite see how it can be constructed. mkName has a proxy entity as first argument (which it discards), and entity should be a Repo. I don't have a Repo, though.
Could you explain this proxy entity construct?
The text was updated successfully, but these errors were encountered:
I'm going round in circles when trying to create a new repo:
Suppose I'm given the repo name "test"
Then I'd like to instantiate a
NewRepo
But
newRepoName
wants the typeName Repo
and I don't quite see how it can be constructed.mkName
has aproxy entity
as first argument (which it discards), and entity should be aRepo
. I don't have aRepo
, though.Could you explain this
proxy entity
construct?The text was updated successfully, but these errors were encountered: