Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable checking git diffs for modifying "frozen" areas #146

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Java8+ with Maven
name: Java LTS with Maven

on: [ push, pull_request ]

Expand All @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 8, 17 ]
java: [ 17 ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop')
strategy:
matrix:
java: [ 17 ]
java: [ 11, 17 ]
os: [ ubuntu-latest ]

name: Snapshot on develop
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Add support for checking git diffs for touching released versions. Use `-g` at the command line.

### Changed

- Output all separators in error message by [@koppor](https://github.com/koppor) [#164](https://github.com/nbbrd/heylogs/pull/164)
- Minimum Java requirement is now Java 11 (due to the dependency on [Eclipse JGit](https://eclipse.dev/jgit/))

### Fixed

Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ It can be used as a linter in interactive sessions and automations.
Key points:

- Available as a library, a [command-line tool](#installation) and a [Maven plugin](#maven-plugin)
- Java 8 minimum requirement
- Java 11 minimum requirement

Features:

- Summarizes content
- Checks format
- Extracts versions

The `check` feature also contains a check if during an update of the CHANGELOG.md file, areas of released versions are touched.
For instance, a contributor starts a pull request and adds their change to CHANGELOG.md.
Then, the main branch is released.
Now, the PR should move the changelog entry to the new `[unreleased]` section.
Therefore, `heylogs` warns in case there are modifications inside blocks of released versions.
One has to enable this check explicitly by the `-g` command line parameter.

## Command-line tool

Heylogs CLI runs on any desktop operating system such as Microsoft Windows,
Solaris OS, Apple macOS, Ubuntu and other various Linux distributions.
It requires a Java SE Runtime Environment (JRE) version 8 or later to run on such as OpenJDK.
It requires a Java SE Runtime Environment (JRE) version 11 or later to run on such as OpenJDK.

### Installation

Expand Down Expand Up @@ -149,7 +156,7 @@ The following script extracts the latest version from the changelog during a rel
## Developing

This project is written in Java and uses [Apache Maven](https://maven.apache.org/) as a build tool.
It requires [Java 8 as minimum version](https://whichjdk.com/) and all its dependencies are hosted
It requires [Java 11 as minimum version](https://whichjdk.com/) and all its dependencies are hosted
on [Maven Central](https://search.maven.org/).

The code can be build using any IDE or by just type-in the following commands in a terminal:
Expand Down
32 changes: 32 additions & 0 deletions heylogs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,32 @@
<artifactId>java-io-base</artifactId>
<version>0.0.26</version>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>6.7.0.202309050840-r</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jool</artifactId>
<version>0.9.15</version>
</dependency>
<dependency>
<groupId>org.tinylog</groupId>
<artifactId>tinylog-api</artifactId>
</dependency>
<!-- required for jgit -->
<dependency>
<groupId>org.tinylog</groupId>
<artifactId>slf4j-tinylog</artifactId>
<version>2.6.2</version>
</dependency>

<!-- test only -->
<dependency>
Expand All @@ -81,5 +107,11 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.tinylog</groupId>
<artifactId>tinylog-impl</artifactId>
<version>${tinylog.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading