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 the max comment length issue #767

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jhutchings1
Copy link
Contributor

I ran into #730 in a demo I was building, so I threw together a quick fix for the issue. Now it'll generate a minimum comment. It's not super elegant (a bit of code duplication), but I was in a hurry to unblock the demo. I don't mind if the team decides to make some tweaks to make this less duplicative.

Fixes #730
Screenshot 2024-05-06 at 10 43 34 AM

@jhutchings1 jhutchings1 requested a review from a team as a code owner May 6, 2024 00:43
Copy link
Contributor

@bteng22 bteng22 left a comment

Choose a reason for hiding this comment

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

Nice work around for the max length issue 👍 Did you need this PR merged for your demo? If not immediate, let's remove some of the duplication like you mentioned and add some tests for getMinSummaryForComment

Also is there a test repo you were running this against?

): Promise<void> {
const commentContent = summary.stringify()

core.setOutput('comment-content', commentContent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we want to remove setting comment-content completely?

@cameron-wellthy
Copy link

@jhutchings1 can I help get this merged? we're starting to see this happen with dependency-review frequently.

@jhutchings1
Copy link
Contributor Author

jhutchings1 commented May 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Action fails to decorate PR when text is too long
3 participants