10 Commits

Author SHA1 Message Date
Bernd Ahlers
f1b75214d3 Go fix 2026-03-11 14:34:34 +01:00
Bernd Ahlers
d580127551 Add changelog management commands (#31)
* Update cobra and viper to their latest versions
* Start a changelog command
* Start changelog release command
* Add Document360 specific HTML formatter
* Add "new" command to create a new changelog entry
* Hide unfinished changelog release command for now
* Use Go version 1.19
* Update golang.org/x/sys to fix build error
* Clean workspace after each build
* Disable CGO for tests
* Remove wrong git checkout
* Update dependencies
2022-08-31 13:37:09 +02:00
Bernd Ahlers
1ef272864a Go fmt 2019-07-20 10:51:02 +02:00
Janosch Rux
2c899255ed utils.NameFromRepository: Handle user:password in URI
Add colon to the username removal regex to also account
for the use of passwords encoded in the URI.
2019-06-25 16:01:40 +02:00
Janosch Rux
e185379c24 Rewrite rewrite of NameFromRepository
Instead of questionable use of / slash index search or reliance
on implicit behaviour in path.Base() shave of URI parts by matching
regular expressions on them. Afterwards apply path.Base() and
do some sanity checks.

Note that net/url.Parse unfortunately can't be used in this context
because it has a stricter behaviour than needed here.
2019-05-27 11:09:58 +02:00
Janosch Rux
de8000cc56 Rewrite NameFromRepository
NameFromRepository now extracts the name
of a repository from a wider range of
repo urls. It is now more permissive towards
invalid/incorrect urls.

The test case has been extended.

This closes #6
2019-05-27 09:56:45 +02:00
Bernd Ahlers
97dab6aa97 Update package.json files during release and add npm-version command
Closes #2
2018-03-13 14:20:38 +01:00
Bernd Ahlers
f11de3e542 Fix an issue where we would generate a long relative path
IntelliJ cannot handle very long relative paths in the "<module>" tag
for some reason so we try to generate a short relative path. This was an
issue when the current working dir is inside a symlink.
2018-02-16 21:49:25 +01:00
Bernd Ahlers
d822dee18e Make sure utils.GetCwd() does not return a symlink
Always resolve the symlinks before returning the current working
directory name. Functions like filepath.Walk do not handle symlinks
well.

Found out the hard way by @kroepke - Thanks!
2017-06-12 16:26:02 +02:00
Bernd Ahlers
80ebf85e88 Initial commit 2017-04-07 17:11:08 +02:00