avh4/elm-github-v3/1.0.0

NOTE: the latest version is 2.0.0

Github

{ authToken : String
, repo : String
, branchName : String
}
-> Task Error { object : { sha : String } }

See https://developer.github.com/v3/git/refs/#get-a-reference

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, branchName : String
, sha : String
}
-> Task Error ()

See https://developer.github.com/v3/git/refs/#create-a-reference

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, sha : String
}
-> Task
Error
{ sha : String
, tree : { sha : String }
}

See https://developer.github.com/v3/git/commits/#get-a-commit

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, message : String
, tree : String
, parents : List String
}
-> Task Error { sha : String }

See https://developer.github.com/v3/git/commits/#create-a-commit

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

type alias PullRequest =
{ number : Int
, title : String
}

The data returned by getPullRequests.

{ authToken : String
, repo : String
}
-> Task Error (List PullRequest)

See https://developer.github.com/v3/pulls/#list-pull-requests

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, number : Int
}
-> Task
Error
{ head :
{ ref : String
, sha : String
}
}

See https://developer.github.com/v3/pulls/#get-a-single-pull-request

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, branchName : String
, baseBranch : String
, title : String
, description : String
}
-> Task Error ()

See https://developer.github.com/v3/pulls/#create-a-pull-request

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, ref : String
, path : String
}
-> Task
Error
{ encoding : String
, content : String
, sha : String
}

See https://developer.github.com/v3/repos/contents/#get-contents

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, branch : String
, path : String
, sha : String
, message : String
, content : String
}
-> Task Error { content : { sha : String } }

See https://developer.github.com/v3/repos/contents/#update-a-file

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

Issues

{ authToken : String
, repo : String
, issueNumber : Int
}
-> Task
Error
(List
{ body : String
, user :
{ login : String
, avatarUrl : String
}
, createdAt : Posix
, updatedAt : Posix
}
)

See https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.

{ authToken : String
, repo : String
, issueNumber : Int
, body : String
}
-> Task
Error
{ body : String
, user :
{ login : String
, avatarUrl : String
}
, createdAt : Posix
, updatedAt : Posix
}

See https://developer.github.com/v3/issues/comments/#create-a-comment

NOTE: Not all input options and output fields are supported yet. Pull requests adding more complete support are welcome.