diff --git a/tests/testthat/_snaps/parse-news-items.md b/tests/testthat/_snaps/parse-news-items.md index dd8d6f9f..580c4ea9 100644 --- a/tests/testthat/_snaps/parse-news-items.md +++ b/tests/testthat/_snaps/parse-news-items.md @@ -36,8 +36,8 @@ [ { - "description": "Improve parsing of conventional commit messages (#332).", - "type": "Features", + "description": "PLACEHOLDER https://github.com/cynkra/fledge/pull/332 (#332).", + "type": "Uncategorized", "breaking": false, "scope": "NA" } @@ -49,17 +49,42 @@ suppressMessages(extract_newsworthy_items( "Merge pull request #18 from someone/conventional-parsing")) Output + + Error in `stop_request()`: + ! An unexpected request was made: + GET https://api.github.com/repos/cynkra/fledge/pulls/18 + Expected mock file: api.github.com/repos/cynkra/fledge/pulls/18.* + --- + Backtrace: + x + 1. +-base::suppressMessages(extract_newsworthy_items("Merge pull request #18 from someone/conventional-parsing")) + 2. | \-base::withCallingHandlers(...) + 3. \-fledge:::extract_newsworthy_items("Merge pull request #18 from someone/conventional-parsing") + 4. \-fledge:::parse_merge_commit(message) at fledge/R/parse-news-items.R:80:3 + 5. \-fledge:::harvest_pr_data(message) at fledge/R/parse-news-items.R:240:3 + 6. +-base::tryCatch(...) at fledge/R/parse-news-items.R:300:5 + 7. | \-base (local) tryCatchList(expr, classes, parentenv, handlers) + 8. | \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) + 9. | \-base (local) doTryCatch(return(expr), name, parentenv, handler) + 10. +-base::suppressMessages(gh(glue("GET /repos/{slug}/pulls/{pr_number}"))) at fledge/R/parse-news-items.R:303:9 + 11. | \-base::withCallingHandlers(...) + 12. \-fledge:::gh(glue("GET /repos/{slug}/pulls/{pr_number}")) at fledge/R/parse-news-items.R:303:9 + 13. \-gh::gh(...) at fledge/R/utils-gh.R:2:3 + 14. \-gh:::gh_make_request(req) at gh/R/gh.R:203:3 + 15. \-httr2::req_perform(req, path = x$desttmp) at gh/R/gh.R:317:3 + 16. \-httptest2 (local) mock(req) at httr2/R/req-perform.R:83:5 + 17. \-httptest2:::stop_request(req) # A tibble: 1 x 4 description type breaking scope - 1 Improve parsing of conventional commit messages (@someon~ Feat~ FALSE NA + 1 PLACEHOLDER https://github.com/cynkra/fledge/pull/18 (#1~ Unca~ FALSE NA # Can parse PR merge commits - linked issues [ { - "description": "improve bump_version() (error) messages (#153, cynkra/dm#325, #328).", - "type": "Features", + "description": "PLACEHOLDER https://github.com/cynkra/fledge/pull/328 (#153, cynkra/dm#325, #328).", + "type": "Uncategorized", "breaking": false, "scope": "NA" } @@ -103,8 +128,8 @@ [ { - "description": "improve bump_version() (error) messages (#153, cynkra/dm#325, #328).", - "type": "Features", + "description": "PLACEHOLDER https://github.com/cynkra/fledge/pull/328 (#153, cynkra/dm#325, #328).", + "type": "Uncategorized", "breaking": false, "scope": "NA" }