Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and github-actions[bot] committed Dec 12, 2024
1 parent 7c54e41 commit f232a0f
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions tests/testthat/_snaps/parse-news-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

[
{
"description": "Improve parsing of conventional commit messages (#332).",
"type": "Features",
"description": "Merge pull request #332 from cynkra/conventional-parsing (#332).",
"type": "Uncategorized",
"breaking": false,
"scope": "NA"
}
Expand All @@ -49,17 +49,42 @@
suppressMessages(extract_newsworthy_items(
"Merge pull request #18 from someone/conventional-parsing"))
Output
<error/httptest2_request>
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:85:3
5. \-fledge:::harvest_pr_data(message) at fledge/R/parse-news-items.R:245:3
6. +-base::tryCatch(...) at fledge/R/parse-news-items.R:305: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:308:9
11. | \-base::withCallingHandlers(...)
12. \-fledge:::gh(glue("GET /repos/{slug}/pulls/{pr_number}")) at fledge/R/parse-news-items.R:308: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
<chr> <chr> <lgl> <lgl>
1 Improve parsing of conventional commit messages (@someon~ Feat~ FALSE NA
1 Merge pull request #18 from someone/conventional-parsing~ Unca~ FALSE NA

# Can parse PR merge commits - linked issues

[
{
"description": "improve bump_version() (error) messages (#153, cynkra/dm#325, #328).",
"type": "Features",
"description": "Merge pull request #328 from cynkra/blop (#153, cynkra/dm#325, #328).",
"type": "Uncategorized",
"breaking": false,
"scope": "NA"
}
Expand Down Expand Up @@ -103,8 +128,8 @@

[
{
"description": "improve bump_version() (error) messages (#153, cynkra/dm#325, #328).",
"type": "Features",
"description": "feat: blop (#328)",
"type": "Uncategorized",
"breaking": false,
"scope": "NA"
}
Expand Down

0 comments on commit f232a0f

Please sign in to comment.