Skip to content

Instantly share code, notes, and snippets.

@HoffmannP
Created April 23, 2018 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save HoffmannP/9f6ff51fe0168e1ad1195c3d1f89a431 to your computer and use it in GitHub Desktop.
Save HoffmannP/9f6ff51fe0168e1ad1195c3d1f89a431 to your computer and use it in GitHub Desktop.
Log of API call
$ curl -X GET "http://localhost:3000/api/v1/repos/ber/test/commits/master/statuses" -H "accept: application/json"
[Macaron] 2018-04-23 15:55:59: Started GET /api/v1/repos/ber/test/commits/master/statuses for 172.25.0.1
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 []interface {}{1}
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `is_fork`, `fork_id`, `size`, `is_fsck_enabled`, `topics`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 []interface {}{1, "test"}
[Macaron] 2018-04-23 15:55:59: Completed GET /api/v1/repos/ber/test/commits/master/statuses 200 OK in 812.237µs
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `index`, `repo_id`, `state`, `sha`, `target_url`, `description`, `context`, `creator_id`, `created_unix`, `updated_unix` FROM `commit_status` WHERE (repo_id = ?) AND (sha = ?) LIMIT 10 []interface {}{1, "master"}
$ curl -X POST "http://localhost:3000/api/v1/repos/ber/test/releases" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"body\": \"test1\", \"draft\": false, \"name\": \"MyTest\", \"prerelease\": true, \"tag_name\": \"my_test\", \"target_commitish\": \"d0d61e41559a1cab11ffb77d118c26cc12fb8954\"}"
[Macaron] 2018-04-23 15:56:54: Started POST /api/v1/repos/ber/test/releases for 172.25.0.1
2018/04/23 15:56:54 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 []interface {}{1}
[git-module] /data/git/repositories/ber/test.git: git -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= show-ref --verify refs/tags/my_test
2018/04/23 15:56:54 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `is_fork`, `fork_id`, `size`, `is_fsck_enabled`, `topics`, `created_unix`, `updated_unix` FROM `repository` WHERE `owner_id`=? AND `lower_name`=? LIMIT 1 []interface {}{1, "test"}
[Macaron] 2018-04-23 15:56:54: Completed POST /api/v1/repos/ber/test/releases 404 Not Found in 1.813455ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment