checkmate 0.3.0 → 0.3.1
raw patch · 4 files changed
+19/−9 lines, 4 files
Files
- CHANGELOG.md +10/−0
- README.md +6/−6
- checkmate.cabal +1/−1
- src/Checkmate/Publisher/GitHub.hs +2/−2
CHANGELOG.md view
@@ -1,6 +1,16 @@ Checkmate changelog =================== +Version 0.3.1+-------------++Released on November 3, 2017.++ - Fixed a bug that `checkmate github-travis` and `checkmate github-circle`+ commands were prone to reach rate limit of GitHub API due to unauthenticated+ request for getting metadata of the pull request.++ Version 0.3.0 -------------
README.md view
@@ -12,7 +12,12 @@ It helps contributors and reviewers to remind matters that require attention when a part of the code is changed. +[ci-badge]: https://travis-ci.org/spoqa/checkmate.svg?branch=master+[ci]: https://travis-ci.org/spoqa/checkmate+[hackage-badge]: https://img.shields.io/hackage/v/checkmate.svg+[hackage]: https://hackage.haskell.org/package/checkmate + Situation --------- @@ -39,12 +44,7 @@ To remind peers of such tasks, Checkmate detects `CHECK` comments like the above example when a relevant *code block* is touched and show peers a checklist. -[ci-badge]: https://travis-ci.org/spoqa/checkmate.svg?branch=master-[ci]: https://travis-ci.org/spoqa/checkmate-[hackage-badge]: https://img.shields.io/hackage/v/checkmate.svg-[hackage]: https://hackage.haskell.org/package/checkmate - Listing relevant checks: overlapped blocks ------------------------------------------ @@ -156,7 +156,7 @@ of the latest release, i.e.: ~~~~~~~ bash- CHECKMATE_DOWNLOAD_URL=https://github.com/spoqa/checkmate/releases/download/0.3.0/checkmate-linux-x86_64+ CHECKMATE_DOWNLOAD_URL=https://github.com/spoqa/checkmate/releases/download/0.3.1/checkmate-linux-x86_64 ~~~~~~~ [personal API tokens]: https://github.com/blog/1509-personal-api-tokens
checkmate.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: checkmate-version: 0.3.0+version: 0.3.1 synopsis: Generate checklists relevant to a given patch category: Development stability: alpha
src/Checkmate/Publisher/GitHub.hs view
@@ -33,7 +33,7 @@ , deleteComment , editComment )-import GitHub.Endpoints.PullRequests (pullRequest)+import GitHub.Endpoints.PullRequests (pullRequest') import GitHub.Endpoints.Users (userInfoCurrent') import Checkmate.Check (Checklist)@@ -109,7 +109,7 @@ let owner = fromMaybe (N . untagName $ userLogin user) owner' PullRequest { pullRequestBase = PullRequestCommit { pullRequestCommitSha = sha }- } <- pullRequest owner repo prId >>= error'+ } <- pullRequest' (Just auth) owner repo prId >>= error' return sha where auth :: Auth