Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: truncate pull request body #882

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

MusabShakeel576
Copy link
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

pkg/plugins/utils/truncate/main_test.go Show resolved Hide resolved
pkg/plugins/utils/truncate/main.go Outdated Show resolved Hide resolved
pkg/plugins/scms/github/pullrequest.go Outdated Show resolved Hide resolved
@olblak olblak added enhancement New feature or request pullrequest-github labels Sep 23, 2022
@olblak
Copy link
Member

olblak commented Sep 23, 2022

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
Copy link
Member

@olblak olblak left a comment

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