diffplug / diffplug/spotless-changelog

When using the same branch and tag name `changelogPush` fails with Error! Expected OK, got UP_TO_DATE.

Open
#54 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
49
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When I use the same name for both the branch and the tag (e.g., a release branch named 'release/xxx' and a tag named 'release/xxx'), the changelogPush task fails.

```
Output:
> Task :changelogCheck
push refs/heads/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
UP_TO_DATE (null)...e818ce24f4ece898ea2c61d955ec7e7823e26d9f
> Task :changelogBump
> Task :changelogPush
push refs/tags/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
OK 0000000000000000000000000000000000000000...67149b2ae0f2d1c8ac3e2d0802b4bad51938307d fastForward
push refs/tags/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
UP_TO_DATE (null)...67149b2ae0f2d1c8ac3e2d0802b4bad51938307d
> Task :changelogPush FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':changelogPush'.
> Error! Expected OK, got UP_TO_DATE.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.