Skip to content

Commit

Permalink
Merge pull request fsfe#1021 from carmenbianca/protokolo
Browse files Browse the repository at this point in the history
Add Protokolo and PR template
  • Loading branch information
carmenbianca committed Jul 1, 2024
2 parents d1e6c04 + 402db02 commit f6b940e
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 21 deletions.
16 changes: 16 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
Before submitting a PR, please read CONTRIBUTING.md. Non-trivial changes should
be discussed in an issue before committing to a PR.
Please succinctly describe your changes.
-->

<!-- Next, let's do a check list. -->

- [ ] Added a change log entry in `changelog.d/<directory>/`.
- [ ] Added self to copyright blurb of touched files.
- [ ] Added self to `AUTHORS.rst`.
- [ ] Wrote tests.
- [ ] (Situational) Documented my changes in `docs/man/`.
- [x] I agree to license my contribution under the licenses indicated in the
changed files.
16 changes: 1 addition & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,7 @@ The versions follow [semantic versioning](https://semver.org) for the `reuse`
CLI command and its behaviour. There are no guarantees of stability for the
`reuse` Python library.

<!--
## Unreleased - YYYY-MM-DD
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
-->
<!-- protokolo-section-tag -->

## Unreleased - YYYY-MM-DD

Expand Down
22 changes: 19 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,25 @@ feature that may not be accepted.
When making a pull request, don't hesitate to add yourself to the AUTHORS.rst
file and the copyright headers of the files you touch.

Every pull request should add an entry in `CHANGELOG.md`. Some exceptions apply,
such as changes which are too tiny to be significant, certain refactorings, or
fixes to pull requests which were already merged, but not yet released.
### Change log

Every pull request should add a change log entry. Change log entries go into
`changelog.d/<directory>/<name>.md`, where `<directory>` is the appropriate
category for the change set, and where `<name>` is a short or random name for
your change set.

The contents of the file should typically look like this:

```markdown
- Added a new feature. (#pr_number)
```

At release time, the contents of the `changelog.d/` directory are compiled into
`CHANGELOG.md` using `protokolo compile`.

Some PRs are excepted from adding change log entries, such as changes which are
too tiny to be significant, certain refactorings, or fixes to pull requests
which were already merged, but not yet released.

## Translation

Expand Down
9 changes: 7 additions & 2 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ SPDX-FileCopyrightText = "2017 Free Software Foundation Europe e.V. <https://fsf
SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
path = "flake.lock"
path = ".github/pull_request_template.md"
precedence = "override"
SPDX-FileCopyrightText = "2017 Free Software Foundation Europe e.V. <https://fsfe.org>"
SPDX-FileCopyrightText = "2024 Free Software Foundation Europe e.V. <https://fsfe.org>"
SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
path = "changelog.d/**/*.md"
SPDX-FileCopyrightText = "REUSE contributors"
SPDX-License-Identifier = "CC-BY-SA-4.0 OR GPL-3.0-or-later"
7 changes: 7 additions & 0 deletions changelog.d/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "${version} - ${date}"
level = 2
7 changes: 7 additions & 0 deletions changelog.d/added/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Added"
order = 1
7 changes: 7 additions & 0 deletions changelog.d/changed/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Changed"
order = 2
7 changes: 7 additions & 0 deletions changelog.d/deprecated/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Deprecated"
order = 3
7 changes: 7 additions & 0 deletions changelog.d/fixed/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Fixed"
order = 5
7 changes: 7 additions & 0 deletions changelog.d/removed/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Removed"
order = 4
7 changes: 7 additions & 0 deletions changelog.d/security/.protokolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2024 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0

[protokolo.section]
title = "Security"
order = 6
18 changes: 17 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ bumpver = ">=2023.1129"
pylint = ">=2.12.2"
mypy = ">=1.0"
GitPython = ">=3.0"
protokolo = { version = ">=2.1.0", python = "^3.11" }

[tool.poetry.group.lsp]
optional = true
Expand Down Expand Up @@ -122,6 +123,11 @@ push = false
'__version__ = "{pep440_version}"$',
]

[tool.protokolo]
changelog = "CHANGELOG.md"
markup = "markdown"
directory = "changelog.d"

[tool.black]
line-length = 80

Expand Down

0 comments on commit f6b940e

Please sign in to comment.