René's URL Explorer Experiment


Title: output suppressed until pre-commit scripts fully ran · Issue #1333 · commitizen-tools/commitizen · GitHub

Open Graph Title: output suppressed until pre-commit scripts fully ran · Issue #1333 · commitizen-tools/commitizen

X Title: output suppressed until pre-commit scripts fully ran · Issue #1333 · commitizen-tools/commitizen

Description: Description Hi, I've configured cz to run some custom pre-commit scripts, and these scripts work as expected if directly called via .git/hooks/pre-commit or via "git commit -m ..." if i use instead cz, after its questions and my answers,...

Open Graph Description: Description Hi, I've configured cz to run some custom pre-commit scripts, and these scripts work as expected if directly called via .git/hooks/pre-commit or via "git commit -m ..." if i use instead...

X Description: Description Hi, I've configured cz to run some custom pre-commit scripts, and these scripts work as expected if directly called via .git/hooks/pre-commit or via "git commit -m ..." if...

Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1333

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"output suppressed until pre-commit scripts fully ran","articleBody":"### Description\n\nHi, I've configured cz to run some custom pre-commit scripts, and these scripts work as expected if directly called via .git/hooks/pre-commit or via \"git commit -m ...\"\r\n\r\nif i use instead cz, after its questions and my answers, it produces its \"purple\" commit message, then the SAME hooks scripts start running but i can't see any output until the script as fully completed its run...\r\n\r\nas some tasks in these scripts are very long to run, i'd like to have some output given to the user on what's going on in the background...\r\n\r\nthanks in advance\n\n### Steps to reproduce\n\n1. .git/hooks/pre-commit #. works and produces its own output\r\n2. git commit -m \"something\"  #. works and produces its own output\r\n3. cz c (and following Q\u0026A) # waits for script completion before producing output\n\n### Current behavior\n\nthis fully works if called manually or via git commit, producing the desired output, while does not until fully completed in case of using \"cz c\"\r\n```\r\n#!/usr/bin/env bash\r\n\r\nsource \"${HOME}/.aliases.sh\"\r\n\r\nfunction main() {\r\n    if [ -n \"${REMOTE_CONTAINERS}\" ]; then\r\n        printf \"${COLOR_GREEN}%s${COLOR_NONE}\\n\" \"Updating Helm dependencies... Please be patient...\"\r\n        if ! updateCharts\r\n        then\r\n            printf '\\n%s\\n' \"${COLOR_RED}----------------------------${COLOR_NONE}\"\r\n            printf '%s\\n'   \"${COLOR_RED}!!! Cannot update charts !!!${COLOR_NONE}\"\r\n            printf '%s\\n'   \"${COLOR_RED}----------------------------${COLOR_NONE}\"\r\n            exit 1\r\n        else \r\n            git add \"${WORKSPACE}/infrastructure/helm/Chart.lock\"\r\n            git add \"${WORKSPACE}/infrastructure/helm/charts\"\r\n        fi\r\n        if ! testTemplates\r\n        then\r\n            exit 1\r\n        fi\r\n    fi\r\n}\r\n\r\nfunction testTemplates() {\r\n    result=true\r\n    for f in \"${WORKSPACE}/infrastructure/helm/values/\"*\r\n    do\r\n        if [ ! -d \"${f}\" ];\r\n        then\r\n            filename=$(basename -- \"${f}\")\r\n            env=\"${filename%.*}\"\r\n            if ! template -n \"precommit\" \"${env}\"\r\n            then\r\n                result=false\r\n                printf '\\n%s\\n' \"${COLOR_RED}----------------------------------------------${COLOR_NONE}\"\r\n                printf '%s\\n'   \"${COLOR_RED}!!! Templating of ${env} environment failed !!!${COLOR_NONE}\"\r\n                printf '%s\\n'   \"${COLOR_RED}----------------------------------------------${COLOR_NONE}\"\r\n            fi\r\n        fi\r\n    done\r\n    rm -rf \"${WORKSPACE}/template/\"*\"precommit\"*\r\n    $result\r\n}\r\n\r\nmain\r\n\r\n```\n\n### Desired behavior\n\nhaving my output on console while scripts run, so users are aware of what's going on\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.1.0\r\nPython Version: 3.13.1 (main, Jan  7 2025, 11:12:45) [GCC 12.2.0]\r\nOperating System: Linux","author":{"url":"https://github.com/fragolinux","@type":"Person","name":"fragolinux"},"datePublished":"2025-01-08T11:18:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1333/commitizen/issues/1333"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cec4052d-492d-0c8e-d2d0-2ec0180cb7bf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D30:121B7:13B9A92:1B13EEF:6A4DE76C
html-safe-nonceda31bd90b6aee8b5b6f4a49101b769545f41656ea762bf2f45a9f00beb443676
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDMwOjEyMUI3OjEzQjlBOTI6MUIxM0VFRjo2QTRERTc2QyIsInZpc2l0b3JfaWQiOiI3NDA3NDMzNjg4MDYzNzk3MTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca1cb05b2e1d2f52dbc574973b3875183d162eb1d32d298490d43fee3289e9cba
hovercard-subject-tagissue:2775131867
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1333/issue_layout
twitter:imagehttps://opengraph.githubassets.com/083a279ccff5e704f403fc1a2c037499ba1af523939cc2d3bcff874b1c80b095/commitizen-tools/commitizen/issues/1333
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/083a279ccff5e704f403fc1a2c037499ba1af523939cc2d3bcff874b1c80b095/commitizen-tools/commitizen/issues/1333
og:image:altDescription Hi, I've configured cz to run some custom pre-commit scripts, and these scripts work as expected if directly called via .git/hooks/pre-commit or via "git commit -m ..." if i use instead...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefragolinux
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1333#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1333
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1333
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1333
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1333
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1333
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1333
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1333
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 343 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
output suppressed until pre-commit scripts fully ranhttps://github.com/commitizen-tools/commitizen/issues/1333#top
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
https://github.com/fragolinux
fragolinuxhttps://github.com/fragolinux
on Jan 8, 2025https://github.com/commitizen-tools/commitizen/issues/1333#issue-2775131867
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.