Skip to content

Commit e420a50

Browse files
committed
Remove release workflows
The project has no releases, so drop the template's Release Drafter and release workflows, label sync script, and related docs.
1 parent ce0f744 commit e420a50

8 files changed

Lines changed: 2 additions & 266 deletions

File tree

‎.github/pull_request_template.md‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,9 @@
66

77
<!-- e.g. Closes #123 -->
88

9-
## Type of Change
10-
11-
<!--
12-
Add a release label to this PR from the Labels section of the PR sidebar
13-
(not a prefix in the PR title or commit message). It sets the release notes section and the version bump:
14-
breaking -> major
15-
feature / enhancement -> minor
16-
bug / fix -> patch
17-
chore / ci / dependencies / documentation / refactor -> patch
18-
skip-changelog -> excluded from release notes
19-
-->
20-
219
## Checklist
2210

2311
- [ ] `just lint` passes
2412
- [ ] `just test` passes
2513
- [ ] Tests added or updated for the change
2614
- [ ] `README.md` updated if needed
27-
- [ ] Release label added

‎.github/release-drafter.yml‎

Lines changed: 0 additions & 45 deletions
This file was deleted.

‎.github/workflows/release-drafter.yml‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 67 deletions
This file was deleted.

‎CLAUDE.md.example‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Uses `uv` for environment/dependency management and `just` as the command runner
1818
- `just docs-serve` - serve the docs locally with live reload
1919
- `just zizmor` - audit GitHub Actions workflows for security issues
2020
- `just git-leaks` - scan staged changes for secrets
21-
- `just set-github-labels` - remove non-release default labels, then create/update the release labels on GitHub
22-
(`scripts/sync-labels.sh`, needs `gh`, for fresh repos)
2321
- `uv add <pkg>` / `uv add --dev <pkg>` - add a runtime / dev dependency (never edit `uv.lock` by hand)
2422
- `uv run python-ds-algorithms` - run the app entry point
2523

@@ -32,9 +30,7 @@ Run `just lint` and `just test` before considering a change done.
3230
- `tests/` - pytest tests; import the package as `from python_ds_algorithms.<module> import ...`
3331
- `prek.toml` - git hook config (`prek install` to enable)
3432
- `.github/workflows/` - `python.yml` (lint, tests, docs build, markdownlint),
35-
`security.yml` (zizmor, gitleaks, pip-audit),
36-
`release-drafter.yml` (draft release, PR labels), `release.yml` (manual release)
37-
- `.github/release-drafter.yml` - release label → version bump / release notes section mapping
33+
`security.yml` (zizmor, gitleaks, pip-audit)
3834
- `.github/dependabot.yml` - weekly updates for actions, uv, dev container image and features
3935
- `.devcontainer/` - dev container; base image, `just`, and `uv` pinned by tag + digest
4036
- `scripts/` - repo maintenance scripts
@@ -46,7 +42,7 @@ Run `just lint` and `just test` before considering a change done.
4642
- Type hints on public functions; code must pass `ty check`
4743
- Renaming the project means updating `[project] name`, the `src/<name>/` folder, and `[project.scripts]` together
4844

49-
## CI, security, and releases
45+
## CI and security
5046

5147
- Pin GitHub Actions to a full commit SHA with a version comment (`uses: owner/action@<sha> # vX.Y.Z`);
5248
run `just zizmor` after editing workflows
@@ -56,6 +52,3 @@ Run `just lint` and `just test` before considering a change done.
5652
- uv is pinned to 0.13.x in four places that must stay in sync: `[tool.uv] required-version` and the
5753
`uv_build` requirement in `pyproject.toml`, `setup-uv` `version` in the workflows, and the uv image in
5854
`.devcontainer/Dockerfile`
59-
- Do not bump `[project] version` by hand; the Release workflow does it
60-
- Every PR needs a release label (GitHub PR label, not a title/commit prefix): `breaking`, `feature`,
61-
`enhancement`, `bug`, `fix`, `chore`, `ci`, `dependencies`, `documentation`, `refactor`, or `skip-changelog`

‎README.md‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ manage project configuration and commands
6262
* `just prek` - run pre-commit hooks via prek
6363
* `just git-leaks` - scan staged changes for secrets with gitleaks
6464
* `just zizmor` - audit GitHub Actions workflows for security issues
65-
* `just set-github-labels` - remove GitHub's non-release default labels, then create or update the release labels
66-
(for fresh repos, requires `gh auth login`)
6765
* `uv add {package}` - install a dependency
6866

6967
## CI and Security
@@ -72,37 +70,8 @@ manage project configuration and commands
7270
| --------------------- | ----------------------- | -------------------------------------------- |
7371
| `python.yml` | push / PR to `main` | lint, unit tests, docs build, markdownlint |
7472
| `security.yml` | push to `main`, all PRs | zizmor, gitleaks, pip-audit dependency audit |
75-
| `release-drafter.yml` | push to `main`, PRs | update the draft release, label PRs |
76-
| `release.yml` | manual | publish a release |
7773

7874
* GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment
7975
* Dependabot (`.github/dependabot.yml`) checks monthly for updates to GitHub Actions, Python
8076
dependencies, the dev container image, and dev container features. New releases wait 7 days
8177
before an update is proposed. Dependabot PRs get the `dependencies` label
82-
83-
## Releases
84-
85-
Releases are managed with [Release Drafter](https://github.com/release-drafter/release-drafter),
86-
which reads the **release labels** on merged pull requests.
87-
88-
A release label is a GitHub label added to the pull request itself, from the **Labels** section
89-
of the PR sidebar. Release Drafter only reads these labels. Commit messages and PR titles are not
90-
parsed, so prefixes like `feat:` or `fix:` have no effect. Only the labels below count as release
91-
labels; any other repository labels you add are ignored.
92-
93-
| Release label | Version bump | Release notes section |
94-
| ----------------------------------------------------------------- | ------------ | --------------------- |
95-
| `breaking` | major | Breaking Changes |
96-
| `feature`, `enhancement` | minor | Features |
97-
| `bug`, `fix` | patch | Bug Fixes |
98-
| `chore`, `ci`, `dependencies`, `documentation`, `refactor` | patch | Maintenance |
99-
| `skip-changelog` | none | Excluded |
100-
101-
* Every PR must have at least one release label, or the `Release Drafter / require-label` check fails. If a release
102-
has PRs with different labels, the largest bump wins
103-
* Release labels are added automatically from the PR's branch name prefix (`feat/`, `fix/`, `chore/`,
104-
`ci/`, `docs/`, `refactor/`) and from the files it changes. You can add or change them by hand
105-
* Run `just set-github-labels` once to create the release labels in the GitHub repository
106-
* Merging to `main` updates a draft GitHub Release with the next version and notes
107-
* To release, run the **Release** workflow from the Actions tab. It bumps the version in
108-
`pyproject.toml`/`uv.lock`, tags the release, and uploads build artifacts. Release notes live on the GitHub Release

‎justfile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ markdownlint:
3434
# Run the git hooks on staged files
3535
prek:
3636
uv run prek
37-
# Remove non-release default labels and sync the release labels on GitHub
38-
set-github-labels:
39-
./scripts/sync-labels.sh
4037
# Install Homebrew tools and sync the project
4138
setup:
4239
brew bundle install

‎scripts/sync-labels.sh‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)