-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
towncrier
to handle change log entries and add instructions to …
…new pull requests (#187)
- Loading branch information
1 parent
7a3fea6
commit 9c3c132
Showing
10 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- If this PR closes a JIRA ticket, make sure the title starts with the JIRA issue number, | ||
for example JP-1234: <Fix a bug> --> | ||
Resolves [JP-nnnn](https://jira.stsci.edu/browse/JP-nnnn) | ||
Resolves [RCAL-nnnn](https://jira.stsci.edu/browse/RCAL-nnnn) | ||
|
||
<!-- If this PR closes a GitHub issue, reference it here by its number --> | ||
Closes # | ||
|
||
<!-- describe the changes comprising this PR here --> | ||
This PR addresses ... | ||
|
||
<!-- if you can't perform these tasks due to permissions, please ask a maintainer to do them --> | ||
## Tasks | ||
- [ ] update or add relevant tests | ||
- [ ] update relevant docstrings and / or `docs/` page | ||
- [ ] Does this PR change any API used downstream? (if not, label with `no-changelog-entry-needed`) | ||
- [ ] write news fragment(s) in `changes/`: `echo "changed something" > changes/<PR#>.<changetype>.rst` (see below for change types) | ||
- [ ] run regression tests with this branch installed (`"git+https://github.com/<fork>/stpipe@<branch>"`) | ||
- [ ] [`jwst` regression test](https://github.com/spacetelescope/RegressionTests/actions/workflows/jwst.yml) | ||
- [ ] [`romancal` regression test](https://github.com/spacetelescope/RegressionTests/actions/workflows/romancal.yml) | ||
|
||
<details><summary>news fragment change types...</summary> | ||
|
||
- ``changes/<PR#>.feature.rst``: new feature | ||
- ``changes/<PR#>.bugfix.rst``: fixes an issue | ||
- ``changes/<PR#>.doc.rst``: documentation change | ||
- ``changes/<PR#>.removal.rst``: deprecation or removal of public API | ||
- ``changes/<PR#>.misc.rst``: infrastructure or miscellaneous change | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
name: confirm changelog entry | ||
name: changelog | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, synchronize, reopened] | ||
types: | ||
- labeled | ||
- unlabeled | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: scientific-python/[email protected] | ||
env: | ||
CHANGELOG_FILENAME: CHANGES.rst | ||
CHECK_MILESTONE: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: pip install . | ||
- run: pip install towncrier | ||
- run: towncrier check | ||
- run: towncrier build --draft | grep -P '#${{ github.event.number }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
0.7.1 (unreleased) | ||
================== | ||
|
||
- | ||
|
||
0.7.0 (2024-08-13) | ||
================== | ||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use ``towncrier`` to handle change log entries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ dependencies: | |
- python=3.11 | ||
- pip | ||
- graphviz | ||
- towncrier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*********** | ||
Change Log | ||
*********** | ||
|
||
.. include:: ../../CHANGES.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Welcome to stpipe's documentation! | |
:caption: Contents: | ||
|
||
model_library.rst | ||
changes.rst | ||
|
||
API | ||
=== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters