Releases: aashutoshrathi/Pick-a-Cherry
Release list
v1.2.1 — Observer leak fix
🐛 Bug fix
A MutationObserver was left running for every client-side navigation, so the extension got steadily heavier the longer a tab stayed open.
What changed
initCherryPicker()now retires the previous page's observer before registering a new one, instead of stacking them.- The observer is also disconnected entirely when navigating to a page with no commits on it, which never happened before.
Measured on a live GitLab commits page, counting observers that are actively watching the document:
| Scenario | v1.2 | v1.2.1 |
|---|---|---|
| 6 client-side navigations between commit pages | 6 live | 1 live |
| then navigating to a non-commit page | 6 live | 0 live |
Most noticeable on GitLab, whose merge request tabs switch client-side far more than GitHub's do. No change to cherry placement or SHA extraction.
Install
- Chrome Web Store: https://chrome.google.com/webstore/detail/pdbnnigeceanokfkdombfhoebgobkfhc
- Manual: grab
pick-a-cherry.zipbelow, unzip it, then "Load unpacked" atchrome://extensions/
Full Changelog: v1.2...v1.2.1
v1.2 - GitLab support
✨ New feature
Cherries now show up on GitLab as well as GitHub. Same one click, same git cherry-pick <sha> on your clipboard.
What changed
- Added GitLab across all three of its commit layouts: commit lists, single commit pages, and the merge request Commits tab.
- Anchored insertion to GitLab's "Copy commit SHA" control rather than row classes, so the button survives GitLab's utility-class churn.
- SHA extraction prefers the full 40-character hash everywhere — the MR Commits tab only exposes a short SHA in its label, so the full one is read from the commit link.
- Platform detection uses GitLab's page marker instead of a hostname list, so self-hosted instances work once granted host access.
- Coalesced
MutationObserverbursts into one pass per frame, so commit-heavy pages rescan far less.
GitHub behaviour is unchanged.
Install
- Chrome Web Store: https://chrome.google.com/webstore/detail/pdbnnigeceanokfkdombfhoebgobkfhc
- Manual: grab
pick-a-cherry.zipbelow, unzip it, then "Load unpacked" atchrome://extensions/
Note
This release adds gitlab.com to the extension's host access, so Chrome will ask you to review the updated permissions.
Full Changelog: v1.1...v1.2
v1.1 - Fix cherry icons on Commits page
🐛 Bug fix
Cherry icons stopped appearing on GitHub's Commits page and PR Commits tab after GitHub migrated both to its new React/Primer (prc-*) layout, which broke the extension's DOM selectors.
What changed
- Unified insertion around the new
[data-testid="commit-row-item"]rows. - SHA extraction now reads any
/commit,/tree, or/changeslink, falling back to the "Copy full SHA" control. - The 🍒 button now sits next to the commit hash on both page types.
Full Changelog: #1