[{"data":1,"prerenderedAt":145},["ShallowReactive",2],{"project-36437925":3},{"id":4,"name":5,"line":5,"line_source":6,"title":7,"url":8,"domain":9,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":17,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":31,"aspects":32,"strip":34,"post_text":28,"what":36,"said":64,"maker_in_thread":89,"shape":94,"grid":96,"attempts":108,"same_week":109,"maker_shows":137,"maker_hidden":138,"reader_version":139,"card":140},"36437925","Send your diff to ChatGPT and prepare a commit message","title","Show HN: Send your diff to ChatGPT and prepare a commit message","https:\u002F\u002Fgist.github.com\u002Fjohnwheeler\u002Fba661c122543d06a5ca6326ffc8c734a","gist.github.com","johnwheeler",1687463957,2023,11,5,2329,3109,75,"shown","dev_tools","git hook","other",[20,23,24,25,26],"commit message","chatgpt","openai","git diff","quiet",null,{"positive":30,"neutral":31,"mixed":30,"critical":30},0,1,{"idea":33},{"positive":30,"critical":30},[30,30,35,30,30],3,{"problem":37,"audience":44,"pricing":28,"motivation":28,"time_to_build":28,"stack":48,"openness":63,"stage":63,"team_size":63},{"value":38,"source":39,"evidence":40},"Writing commit messages by hand","inferred",[41],{"id":42,"by":10,"text":43},"36437926","This git hook feeds your diff output to ChatGPT 3 turbo and produces a commit message. export OPENAI_API_KEY=\u003Credact> chmod +x prepare-commit-msg mv prepare-commit-msg…",{"value":45,"source":39,"evidence":46},"Developers using git",[47],{"id":42,"by":10,"text":43},[49,57],{"value":50,"source":51,"evidence":52},"OpenAI GPT-3.5 Turbo","maker",[53,54],{"id":42,"by":10,"text":43},{"id":55,"by":10,"text":56},"36439875","Updated it to use GPT-3-TURBO 16K context.",{"value":58,"source":51,"evidence":59},"Python (pip packages tiktoken and requests)",[60],{"id":61,"by":10,"text":62},"36439902","forgot, you must pip install tiktoken requests Here's what the commits look like commit 1f02b023739c4951bfb9e8d1266c6f601b82ef85 ``` Update git commit message to include a…","unknown",{"praise":65,"objections":66,"requests":67,"questions":76,"alternatives":77},[],[],[68],{"value":69,"source":70,"evidence":71},"Support Conventional Commits format","commenter",[72],{"id":73,"by":74,"text":75},"36453782","tentacleuno","Can this do Conventional Commits? Not that I'm saying I'd use it (I would prefer to write them myself still), but curious.",[],[78,85],{"value":79,"source":70,"evidence":80},"CodeGPT (appleboy)",[81],{"id":82,"by":83,"text":84},"36444166","kytazo","https:\u002F\u002Fgithub.com\u002Fappleboy\u002FCodeGPT https:\u002F\u002Fgithub.com\u002Fzurawiki\u002Fgptcommit For those interested in a more complete solution",{"value":86,"source":70,"evidence":87},"gptcommit (zurawiki)",[88],{"id":82,"by":83,"text":84},{"comments":35,"answered":30,"key":90},[91,92,93],{"id":42,"text":43},{"id":61,"text":62},{"id":55,"text":56},{"commenters":35,"max_depth":35,"maker_replies":35,"first_comment_mins":30,"lifespan_hours":95},28,[97,99,101,103,105],[42,30,30,98,10,31],"project\u002Fneutral\u002Fdocs",[61,30,30,100,10,31],"project\u002Fpositive\u002Fperformance",[73,30,35,102,74,30],"project\u002Fneutral\u002Fidea",[82,31,30,104,83,30],"other\u002Fneutral\u002Fnone",[55,106,30,107,10,31],2,"project\u002Fneutral\u002Fexecution",[],[110,115,120,124,129,133],{"id":111,"name":112,"points":113,"category":114},"36480687","Mofi",708,"creative",{"id":116,"name":117,"points":118,"category":119},"36470297","OpenResume",656,"productivity",{"id":121,"name":122,"points":123,"category":119},"36446045","Vrite Editor",460,{"id":125,"name":126,"points":127,"category":128},"36505859","background removal",395,"ai",{"id":130,"name":131,"points":132,"category":128},"36472854","WinGPT",382,{"id":134,"name":135,"points":136,"category":19},"36447871","React Graph Gallery",297,4,false,"v2",{"id":141,"name":5,"line":5,"ai":138,"cat":19,"year":12,"points":13,"comments":14,"rec":27,"s":28,"top":17,"kw":142,"maker":10,"domain":9,"tier":18,"attempts":30,"strip":143,"url":8,"mix":144,"praise":-1,"objection":-1,"sub":20},36437925,[20,23,24,25,26],"00300",[30,31,30,30],1794036637297]