Skip to content

Commit c98f2b6

Browse files
Merge pull request #1504 from MilagrosMarin/chore/release-flow-cleanup
chore(release-flow): stale doc pointers, RELEASE_MEMO cleanup, and dead badge step
2 parents 77d761e + feea261 commit c98f2b6

3 files changed

Lines changed: 8 additions & 24 deletions

File tree

.github/workflows/post_draft_release_published.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,6 @@ jobs:
4747
git add src/datajoint/version.py
4848
git commit -m "Update version.py to $VERSION"
4949
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
50-
- name: Update README.md badge
51-
run: |
52-
# commits since the last release
53-
NEW_HREF="https://github.com/datajoint/datajoint-python/compare/${{ github.event.release.tag_name }}...master"
54-
NEW_SRC="https://img.shields.io/github/commits-since/datajoint/datajoint-python/${{ github.event.release.tag_name }}?color=red"
55-
# Update href in the <a> tag
56-
sed -i 's|\(<a id="commit-since-release-link"[^>]*href="\)[^"]*\(".*\)|\1'"$NEW_HREF"'\2|' README.md
57-
# Update src in the <img> tag
58-
sed -i 's|\(<img id="commit-since-release-img"[^>]*src="\)[^"]*\(".*\)|\1'"$NEW_SRC"'\2|' README.md
59-
git add README.md
60-
# Only commit if there are changes (handles re-runs gracefully)
61-
git diff --cached --quiet README.md || git commit -m "Update README.md badge to ${{ github.event.release.tag_name }}"
6250
- name: Set up Python ${{matrix.py_ver}}
6351
uses: actions/setup-python@v5
6452
with:

RELEASE_MEMO.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55
| Branch | Purpose | Version |
66
|--------|---------|---------|
7-
| `master` | Main development | 2.1.x |
8-
| `maint/2.0` | Maintenance releases | 2.0.x |
9-
10-
For 2.0.x bugfixes:
11-
1. Commit to `maint/2.0`
12-
2. Tag and release as v2.0.x
13-
3. Cherry-pick to master if applicable
7+
| `master` | Main development | 2.3.x |
148

159
---
1610

@@ -68,10 +62,11 @@ The release drafter uses PR labels to categorize changes:
6862

6963
| Label | Category |
7064
|-------|----------|
71-
| `breaking` | BREAKING CHANGES |
72-
| `enhancement` | Added |
73-
| `bug` | Fixed |
74-
| `documentation` | (usually excluded) |
65+
| `breaking` | 💥 Breaking Changes |
66+
| `feature` | 🚀 Features |
67+
| `enhancement` | ⚡️ Enhancements |
68+
| `bug` | 🐛 Bug Fixes |
69+
| `documentation` | 📝 Documentation |
7570

7671
Ensure PRs have appropriate labels before merging.
7772

@@ -215,6 +210,7 @@ After build completes:
215210

216211
- @datajointbot
217212
- @dimitri-yatsenko
213+
- @MilagrosMarin
218214
- @ttngu207
219215

220216
## Links

src/datajoint/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# version bump auto managed by Github Actions:
2-
# label_prs.yaml(prep), release.yaml(bump), post_release.yaml(edit)
2+
# draft_release.yaml (draft), post_draft_release_published.yaml (bump + PR)
33
# manually set this version will be eventually overwritten by the above actions
44
__version__ = "2.3.1"

0 commit comments

Comments
 (0)