Title: [feature]: Override commit hash[es] for a changeset · Issue #601 · changesets/changesets · GitHub
Open Graph Title: [feature]: Override commit hash[es] for a changeset · Issue #601 · changesets/changesets
X Title: [feature]: Override commit hash[es] for a changeset · Issue #601 · changesets/changesets
Description: Problem When working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time the branch is release. We'd want the changelo...
Open Graph Description: Problem When working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time the b...
X Description: Problem When working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time t...
Opengraph URL: https://github.com/changesets/changesets/issues/601
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[feature]: Override commit hash[es] for a changeset","articleBody":"## Problem\r\n\r\nWhen working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time the branch is release. We'd want the changelogs to reflect the final state of the project, rather than the incremental differences accumulated over the branch. Changesets brilliantly lets us revise the changelog before publishing or as we go, but AFAIK, the commits which revise the changeset would be taken as canonical, when we'd prefer to always link to the commit which changes the code.\r\n\r\n1. start working on a branch\r\n2. make changes\r\n3. commit them and add changesets\r\n4. repeat 2, 3 n times, but adding new features that you didn't expect in step 1\r\n5. finish the branch\r\n6. revise changesets in lieu of new knowledge from 4\r\n7. commit changes to changesets\r\n\r\nAFAIK, now the changesets will link to the commit from step 7, the last commit on the branch, instead of to the commits which actually made the changes\r\n\r\nAlternatively, you might want to add all the changesets after-the-fact, but still link back to the relevant commits.\r\n\r\n## Proposed solution\r\n\r\nAdd an optional `commits` frontmatter key to changesets\r\n\r\n~~~markdown\r\n---\r\n\"@scope/package\": major\r\ncommits: 73cu2xi7\r\n---\r\nCool feature\r\n\r\nthis feature is amazing\r\n~~~\r\n~~~markdown\r\n---\r\n\"@scope/package\": minor\r\ncommits:\r\n - u803jcil\r\n - 8djklx8e\r\n---\r\nCoolest feature\r\n\r\nthis feature is superlative\r\n~~~\r\n\r\n## Considered alternatives\r\n\r\n`git rebase` the branch, adding in the final revised changesets as we go.","author":{"url":"https://github.com/bennypowers","@type":"Person","name":"bennypowers"},"datePublished":"2021-06-11T09:19:28Z","url":"https://github.com/changesets/changesets/issues/601"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b4273a6f-430e-70bd-3b97-777bf4ec3641 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B532:15A4DC:21C6CC:2C2AAE:6B03D012 |
| html-safe-nonce | af23fd8b06e36c4ed637778667712b0ba74ae75190f07510a6424525967f24ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTMyOjE1QTREQzoyMUM2Q0M6MkMyQUFFOjZCMDNEMDEyIiwidmlzaXRvcl9pZCI6Ijc0NDY1MTI5MTE1ODEwNjEzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d1812cfc2bb204a78bb3d2373cb327678ab64a295761a726226b53413307acd9 |
| hovercard-subject-tag | issue:918488190 |
| github-keyboard-shortcuts | repository,issues,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/changesets/changesets/601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e9fc6ad5cadc0f91ee01b4238effe86171113a99b88ff1167f39b4ea5d3be01/changesets/changesets/issues/601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e9fc6ad5cadc0f91ee01b4238effe86171113a99b88ff1167f39b4ea5d3be01/changesets/changesets/issues/601 |
| og:image:alt | Problem When working on a long-lived branch, expectations can change as new knowledge is gained. Changes made early on in the branch's lifecycle may no longer be publicly relevant by the time the b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bennypowers |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/changesets/changesets git https://github.com/changesets/changesets.git |
| octolytics-dimension-user_id | 51163350 |
| octolytics-dimension-user_login | changesets |
| octolytics-dimension-repository_id | 177033748 |
| octolytics-dimension-repository_nwo | changesets/changesets |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 177033748 |
| octolytics-dimension-repository_network_root_nwo | changesets/changesets |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width