Commit Graph

13 Commits

Author SHA1 Message Date
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
72b8cd19d8 Support PR HTTP URLs for the --pull-requests option of checkout
This makes it possible to use a full HTTP URL to a pull request.
2020-12-17 13:18:35 +01:00
Bernd Ahlers
0ff8279521 Fix repository detection for --pull-requests in checkout command 2020-08-03 15:47:50 +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
d5da855b34 Fix SSH/HTTPS repo URL handling
Use the transport of the given graylog-project URL to decide how to
clone all other repositories.

Also remove obsolete --use-ssh and --use-https flags from bootstrap command.

Fixes #4
2017-05-04 11:10:58 +02:00
Bernd Ahlers
9e6369006a Add a module-override option to the checkout command
This can be used to override the revision for a module in the given
manifest.
2017-04-29 17:34:49 +02:00
Bernd Ahlers
80ebf85e88 Initial commit 2017-04-07 17:11:08 +02:00