Skip to content

fix: truncate pull request body#882

Merged
olblak merged 3 commits into
updatecli:mainfrom
MusabShakeel576:bugfix/873_truncate_pr_body
Sep 23, 2022
Merged

fix: truncate pull request body#882
olblak merged 3 commits into
updatecli:mainfrom
MusabShakeel576:bugfix/873_truncate_pr_body

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Fix #873

Truncate long PR message to avoid body is too long error.

Test

To test this pull request, you can run the following commands:

go test -timeout 30s -run ^TestString$ github.com/updatecli/updatecli/pkg/plugins/utils/truncate

Additional Information

Tradeoff

No response

Potential improvement

No response

Comment thread pkg/plugins/utils/truncate/main_test.go
Comment thread pkg/plugins/utils/truncate/main.go Outdated
Comment thread pkg/plugins/scms/github/pullrequest.go Outdated
@olblak olblak added enhancement New feature or request pullrequest-github labels Sep 23, 2022
@olblak

olblak commented Sep 23, 2022

Copy link
Copy Markdown
Member

Ho nice, it's great the way you handle it as we'll be able to use this truncate for gitea pullrequest and other scm coming

@olblak olblak enabled auto-merge (squash) September 23, 2022 07:16

@olblak olblak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already approve as the current the PR solve the initial. We have small nitpick suggestion.
I'll wait for the test to finish

@olblak olblak merged commit c65cec9 into updatecli:main Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pullrequest-github

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github PullRequest body should be truncated

3 participants