Andrea Lamparelli
2bb7f73112
feat: implement error notification as pr comment ( #124 )
...
* feat: implement error notification as pr comment
* Update action.yml
Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
* feat: implement gitlab client and surround with try catch
* docs: add error notification enablment in the doc
* feat: disable comment if dry-run
* feat: update the default comment on error
---------
Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
2024-04-10 23:01:16 +02:00
Earl Warren
6042bcc40b
feat: auto-detect the value of the no-squash option ( #118 )
...
The auto-no-squash option is added to:
* backport all the commits when the pull/merge request has been merged
* backport the squashed commit otherwise
It is equivalent to dynamically adjust the value of the no-squash
option, depending on the context.
The no-squash option is kept for backward compatibility for a single
use case: backporting the merged commit instead of backporting the
commits of the pull/merge request request.
Detecting if a pull/merge request was squashed or not depends on the
underlying forge:
* Forgejo / GitHub: use the API to count the number of parents
* GitLab: if the squash_commit_sha is set, the merge request was
squashed
If the pull/merge request is open, always backport all the commits it
contains.
Fixes: https://github.com/kiegroup/git-backporting/issues/113
Co-authored-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
2024-04-08 18:51:13 +02:00
Earl Warren
fe6be83074
feat: add --cherry-pick-options to add to all cherry-pick run ( #116 )
...
Fixes: https://github.com/kiegroup/git-backporting/issues/111
2024-04-02 10:34:48 +02:00
Andrea Lamparelli
53cc505f17
feat(gh75): extract target branched from pr labels ( #112 )
2024-03-30 19:19:17 +01:00
Earl Warren
b2e2e271b9
docs: explain the strategy equivalent to the cherry-pick defaults ( #110 )
2024-03-30 11:04:32 +01:00
Andrea Lamparelli
ee7a87f26f
docs: remove migrating section ( #109 )
2024-03-29 09:39:39 +01:00
Earl Warren
80a0b554f0
feat: add --git-client to explicitly set the type of forge ( #106 )
...
codeberg is running Forgejo and it may not be possible to infer that
from the URL alone. The same is true for GitHub Enterprise Server.
2024-03-23 17:13:14 +01:00
Earl Warren
a36b740991
docs: fix typos ( #105 )
...
Signed-off-by: Earl Warren <contact@earl-warren.org>
2024-03-22 16:04:20 +01:00
Andrea Lamparelli
70da575afc
feat(gh-85): take git tokens from environment ( #88 )
2023-12-10 22:05:53 +01:00
Andrea Lamparelli
9f0fbc0b2f
feat: integrate with codeberg ( #80 )
2023-08-18 13:15:38 +02:00
Andrea Lamparelli
eecbff34b7
chore: update README ( #79 )
2023-08-18 13:11:20 +02:00
Andrea Lamparelli
5fc72e127b
feat(issue-77): handle multiple target branches ( #78 )
...
fix: https://github.com/kiegroup/git-backporting/issues/77
This enhancement allow users to backport the same change to multiple
branches with one single tool invocation
2023-08-03 21:57:11 +02:00
Andrea Lamparelli
bed7e29ddc
feat(issue-70): additional pr comments
2023-07-27 12:36:42 +02:00
Andrea Lamparelli
e13d1fbf00
docs: update readme
2023-07-20 15:45:17 +02:00
Andrea Lamparelli
265955dda7
feat(issue-62): make cherry-pick strategy configurable ( #63 )
...
fix https://github.com/kiegroup/git-backporting/issues/62
2023-07-12 13:50:59 +02:00
Andrea Lamparelli
ead1322c0f
fix(issue-57): truncate the bp branch name ( #58 )
...
fix: https://github.com/kiegroup/git-backporting/issues/57
This pr will ensure that if the provided/generated backport branch name
exceede the maximum branch name length set for git, which is 250 chars,
it truncates that name to 250 chars exactly.
In order to include as much commits as possible the branch name will
contain by default the shortened version of all commits
2023-07-11 22:46:21 +02:00
Andrea Lamparelli
c4dbb26c1d
feat(issue-54): backport pr commits without squash ( #55 )
...
* feat(issue-54): backport pr commits without squash
fix https://github.com/kiegroup/git-backporting/issues/54
* feat(issue-54): fixed readme
2023-07-11 11:22:01 +02:00
Andrea Lamparelli
fcc01673f4
feat(issue-41): set and inherit labels ( #48 )
...
fix https://github.com/kiegroup/git-backporting/issues/41
2023-07-10 08:49:11 +02:00
Andrea Lamparelli
15b6dd63ec
refactor: transfer to kiegroup organization ( #46 )
...
* refactor: moved to @kiegroup organization
Starting from v4 the package/project has been moved under @kiegroup
organization.
* chore: release v4.0.0
* refactor: bper renamed to git-backporting
2023-07-06 14:19:04 +02:00
Andrea Lamparelli
841ddb9125
build: automate release preparation
2023-07-06 11:15:38 +02:00
Andrea Lamparelli
5ead31f606
feat: config file as option ( #42 )
...
Fix https://github.com/lampajr/backporting/issues/37
This enhancement required a huge refactoring where all arguments
defaults have been centralized in one single place ArgsParser#parse
2023-07-05 22:11:23 +02:00
Andrea Lamparelli
a88adeec35
docs: updated readme
2023-07-03 18:15:59 +02:00
Andrea Lamparelli
107f5e52d6
feat: integrate tool with gitlab service ( #39 )
...
* feat: integrate tool with gitlab service
Fix https://github.com/lampajr/backporting/issues/30
2023-07-02 00:05:17 +02:00
Andrea Lamparelli
8a007941d1
docs: removed badge
2023-06-28 12:04:21 +02:00
Andrea Lamparelli
2a411ed5a0
docs: fix readme
2023-06-28 12:00:46 +02:00
Andrea Lamparelli
a32e8cd34c
feat: override backporting pr fields ( #38 )
...
* feat: override local git user config
* feat(issue-32): override reviewers and assignees
2023-06-22 17:44:14 +02:00
Andrea Lamparelli
7f9276f15b
chore: update readme
2023-06-20 23:24:29 +02:00
Andrea Lamparelli
941beda208
feat(issue-17): override backporting pr data ( #29 )
2023-06-20 22:29:52 +02:00
Pierre Prinetti
1732481b37
docs: Add pull-request trigger example ( #28 )
...
Document how to use this action to trigger a backport directly from a
pull request, using labels.
2023-06-20 18:11:33 +02:00
Andrea Lamparelli
b3936e019a
feat: pull request backporting
...
feat: backport still open pull requests
2023-01-05 11:41:14 +01:00