Title: Show additional information when a hook fails · Issue #3189 · pre-commit/pre-commit · GitHub
Open Graph Title: Show additional information when a hook fails · Issue #3189 · pre-commit/pre-commit
X Title: Show additional information when a hook fails · Issue #3189 · pre-commit/pre-commit
Description: search you tried in the issue tracker manual describe your actual problem When developers run the pre-commit, they don't always understand what to or where to find more information. The hook description field is already present and often...
Open Graph Description: search you tried in the issue tracker manual describe your actual problem When developers run the pre-commit, they don't always understand what to or where to find more information. The hook descri...
X Description: search you tried in the issue tracker manual describe your actual problem When developers run the pre-commit, they don't always understand what to or where to find more information. The hook de...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/3189
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Show additional information when a hook fails","articleBody":"### search you tried in the issue tracker\r\n\r\nmanual\r\n\r\n### describe your actual problem\r\n\r\nWhen developers run the pre-commit, they don't always understand what to or where to find more information. The hook description field is already present and often used to provide more descriptive information. For brevity this is not shown in normal cases, but this PR changes the tool behavior to show the description in verbose mode (`-v`). So most users won't see any difference but this can easily be enabled for people who want it.\r\n\r\nAlternatives considered:\r\n* Always show the description: Some people may not like this though as it can be spammy.\r\n* Provide a new field: Possible but seems to be just more work with description already present and not otherwise used.\r\n* Show the `repo` link. This is at the wrong level and has a slightly different purpose. Though description can just be set to the same url where that is correct.\r\n\r\n\r\n### pre-commit --version\r\n\r\npre-commit 3.7.0","author":{"url":"https://github.com/helly25","@type":"Person","name":"helly25"},"datePublished":"2024-04-25T09:19:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3189/pre-commit/issues/3189"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6faa49d6-1670-247d-e7af-7a9ef3234bfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C168:F0C06:AED696:EEB86C:6A52083A |
| html-safe-nonce | d3eb29a65cf720ea8a5723d33eef12c591f8cfdfb79f1e68aab5214e39678811 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTY4OkYwQzA2OkFFRDY5NjpFRUI4NkM6NkE1MjA4M0EiLCJ2aXNpdG9yX2lkIjoiNDkwMDU4MjAzMDM5NDM5NDY4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cc18a601fb04c031559c032fe057ad23818d1fa8383b789b3e19dcd9237339a7 |
| hovercard-subject-tag | issue:2263100560 |
| github-keyboard-shortcuts | repository,issues,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/3189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b61261d14fe25d634143929b2d1e65e863f9025011a70e800106eb31004e9bb/pre-commit/pre-commit/issues/3189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b61261d14fe25d634143929b2d1e65e863f9025011a70e800106eb31004e9bb/pre-commit/pre-commit/issues/3189 |
| og:image:alt | search you tried in the issue tracker manual describe your actual problem When developers run the pre-commit, they don't always understand what to or where to find more information. The hook descri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | helly25 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width