Bernd Ahlers
1b5b45907b
Add github rulesets command
2024-03-06 00:20:29 +01:00
Marco Pfatschbacher
76468a9b1b
Add checkout --merge-in-base support ( #40 )
...
* Add checkout --merge-in-base support
When using this option, the checkout will try to merge in the
base branch into each module by running:
`git merge --no-edit origin/<base-branch>`
Retain the unmodified "BaseRevision" info in the Module struct
so it can be used in case it was overwritten by
`applyPullRequestsOverride()`
* only merge base if necessary
* Check if baseRevision is set
Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com >
---------
Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com >
2023-12-05 09:53:02 +01:00
Marco Pfatschbacher
754e4fcd3f
Support reading gh app key directly from env ( #39 )
...
* Support reading gh app key directly from env
Pass the app-key directly via GPC_GITHUB_APP_KEY env instead
of reading a file.
A file can still be used with the `app-key-file` flag.
* Fix error output for loading key file
Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com >
---------
Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com >
2023-11-07 12:09:42 +01:00
Bernd Ahlers
f15a846e4c
Push changelog commits after rotation
2023-10-23 10:26:16 +02:00
Bernd Ahlers
9f81c49957
Add TODO about pushing changelog commits
2023-08-08 17:48:17 +02:00
Bernd Ahlers
385ec22572
Print all errors at the end of update command
...
This makes it easier to spot any errors when updating the project
repositories by displaying them at the end of the command.
2023-08-08 17:47:05 +02:00
Bernd Ahlers
9ea92aae7d
Don't print usage for project render errors
2023-08-02 17:14:49 +02:00
Bernd Ahlers
b350599887
Don't print usage for render errors
2023-08-02 17:13:33 +02:00
Bernd Ahlers
74cc0f4054
Add --strict flag to changelog lint command
...
In strict mode the command exits with an error if no files can be found.
2023-08-02 15:57:25 +02:00
Bernd Ahlers
10719444e3
Extend lint command to render each snippet
2023-08-02 09:23:09 +02:00
Bernd Ahlers
18dda2d75a
Add --render-no-changes parameter
2023-05-25 19:20:18 +02:00
Bernd Ahlers
22b0129a75
Add --allow-pre-release flag to changelog release:path command
2023-05-03 18:36:42 +02:00
Bernd Ahlers
4d9a8a4f3e
Handle changelog rotation when creating new branches during a release
2023-05-02 19:27:56 +02:00
Bernd Ahlers
27e54d23eb
Add --skip-invalid-snippets parameter to project-changelog render
2023-04-17 15:30:03 +02:00
Bernd Ahlers
bcbae96236
Support GitHub URLs with credentials and remove/redact them
2023-03-29 17:02:05 +02:00
Bernd Ahlers
ce79ae6828
Return current version in graylog-version command with no --set option
2023-03-29 15:25:13 +02:00
Bernd Ahlers
9195c91f6f
Add --quiet flag to root command
2023-02-17 13:08:55 +01:00
Bernd Ahlers
65aab90ef1
Add --md-header-base-level CLI option
2023-02-17 10:26:00 +01:00
Bernd Ahlers
9397b54c8f
Correctly set SkipHeader config
2023-02-17 10:06:34 +01:00
Bernd Ahlers
69d2007ae6
Support reading snippets from stdin and skip header
2023-02-15 19:04:33 +01:00
Bernd Ahlers
fc5ee6c5a3
Replace go-spew with pp
2023-01-13 12:46:51 +01:00
Bernd Ahlers
08e384f468
Add command to generate a GitHub app installation access token
...
Disable the branch-protection command. We don't use it anymore and it's
now dangerous to use because it would override our manualy brancht
protection configuration.
2023-01-13 12:46:45 +01:00
Bernd Ahlers
44091ebc0a
Add project-changelog render command
...
This can be used to render the changelog for all modules in the project.
2023-01-04 15:43:38 +01:00
Bernd Ahlers
7063cbf08d
Add support for selecting modules based on their assembly
2023-01-04 15:43:33 +01:00
Bernd Ahlers
06380afc7e
Fix unreachable statement issue
...
The logger.Fatal call already calls os.Exit so the usage info wouldn't
be shown. Use logger.Error instead.
2023-01-03 12:36:22 +01:00
Bernd Ahlers
6e44b035b5
Add "changelog release:path" command
...
This command can be used when you want to release a changelog for a
repository that is not part of a graylog-project setup.
2022-11-30 17:45:19 +01:00
Bernd Ahlers
4090eba32d
Rotate changelog in the release process
2022-11-29 15:35:01 +01:00
Bernd Ahlers
07aa9ed97f
Add Windows support
2022-11-29 12:39:04 +01:00
Bernd Ahlers
c3c7218398
Add lint command to check snippets for syntax and content errors
2022-11-29 12:28:20 +01:00
Bernd Ahlers
74a8655142
Support rendering multiple snippets directories into one changelog
2022-11-24 16:47:16 +01:00
Bernd Ahlers
971c2233bc
Polish the changelog commands
...
- Fix default gemplate spacing
- Provide feedback about written files
- Make message validator in interactive mode less strict
- Better usage information in command line help
2022-10-21 14:05:55 +02:00
Bernd Ahlers
ae581ada0e
Remove manifest generate question that we always answer with Yes
...
Fixes #30
2022-08-31 13:54:07 +02: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
b7971db06a
Improve verbose status output
...
Allow multiple "-v" flags to increase the verbosity.
2022-07-06 11:58:45 +02:00
Bernd Ahlers
85fff0cd39
Don't set runner env variables for default ports
...
This allows the usage of these env variables in a .env file for
docker-compose.
2022-06-28 19:37:11 +02:00
Bernd Ahlers
8f63511bae
Change commit ID position in status output
...
This puts the branch first as it was before the introduction of the
commit ID. This makes it easier in interactive use to see the branch.
2021-11-30 18:39:36 +01:00
Marco Pfatschbacher
aac1e8d22a
Print commit IDs with the status command ( #29 )
...
That makes it easier to identify if a build contained a certain change or not.
Co-authored-by: Bernd Ahlers <bernd@graylog.com >
2021-11-16 14:55:35 +01:00
supahgreg
f60fc05979
Use the actual executable name in usage output.
...
The executable might be named differently than 'graylog-project-cli' (e.g. https://github.com/Graylog2/graylog-project shows renaming to 'graylog-project').
2021-11-06 09:53:53 -05:00
Bernd Ahlers
b4118fbeb2
Add "--skip-tests" flag to apply-manifest command
...
This will use the `-DskipTests` property to run the maven build command.
2021-11-05 11:32:29 +01:00
Bernd Ahlers
b733609bcc
Don't set parent for server module in maven-parent command
2021-01-28 10:39:46 +01:00
Bernd Ahlers
c77cbd2239
Use projectstate.Sync where applicable
2020-11-19 23:10:21 +01:00
Bernd Ahlers
73263208c3
Add --pull-requests flag to checkout command
...
This uses GitHub's way of checking out a pull-request locally.
See: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
2020-06-05 19:02:37 +02:00
Bernd Ahlers
36f2fa9daf
Add dev:exec command to execute "docker-compose exec"
2020-06-04 16:07:46 +02:00
Bernd Ahlers
78babf0acc
Also update the graylog-project repository itself
2020-06-04 16:07:46 +02:00
Bernd Ahlers
e1d3f629f2
Add --debug flag to run command
2020-06-04 16:07:46 +02:00
Bernd Ahlers
82c2eb6640
Update examples
2020-06-04 16:07:46 +02:00
Bernd Ahlers
3be7659bed
Add more build and run options as well as cleanup command
2020-06-04 16:07:46 +02:00
Bernd Ahlers
87887880f0
Add dev:web command and fix viper issue
2020-06-04 16:07:46 +02:00
Bernd Ahlers
7d55e41c85
Remove unused code and dependencies
2020-06-04 16:07:46 +02:00
Bernd Ahlers
08a1aa2632
Run scripts instead of docker-compose directly
2020-06-04 16:07:43 +02:00