Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Statuses endpoints #268

Merged
merged 3 commits into from
Nov 9, 2017
Merged

Add Statuses endpoints #268

merged 3 commits into from
Nov 9, 2017

Conversation

jamesdabbs
Copy link
Contributor

See https://developer.github.com/v3/repos/statuses

I'm working on writing a CI-style service which receives a webhook and posts statuses back. I'm mostly interested in create status, but did a quick smoketest of the other ones and they seemed to work fine.

What's preferred in terms of tests, examples, documentation? I'm happy to write any of those, but would appreciate a reference.

#259 (and #256)

Copy link
Contributor

@phadej phadej left a comment

Choose a reason for hiding this comment

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

Looks solid!

createStatus :: Auth -> Name Owner -> Name Repo -> Name Commit -> NewStatus -> IO (Either Error Status)
createStatus auth owner repo sha ns =
executeRequest auth $ createStatusR owner repo sha ns

Copy link
Contributor

Choose a reason for hiding this comment

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

could you add links to the relevant parts of github docs here as haddocks, and to Github.hs module explicitly, so we get a nice overview of api: http://hackage.haskell.org/package/github-0.15.0/docs/GitHub.html

Copy link
Contributor

Choose a reason for hiding this comment

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

@ocharles
Copy link

ocharles commented Oct 7, 2017

While James has seemingly abandoned this, could we still get it merged? I just wasted an evening rewriting this exact PR

@jamesdabbs
Copy link
Contributor Author

Apologies - I missed those earlier notifications. I’ll add that documentation shortly.

@jamesdabbs
Copy link
Contributor Author

Okay, rebased and updated the docs. Let me know if I missed anything @phadej. Thanks!

@phadej phadej merged commit 0858f62 into haskell-github:master Nov 9, 2017
@phadej phadej added this to the 0.18 milestone Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants