Skip to content

Add comment to trim lines #621

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

Merged
merged 1 commit into from
Jul 1, 2025
Merged

Add comment to trim lines #621

merged 1 commit into from
Jul 1, 2025

Conversation

JoannaaKL
Copy link
Contributor

Adds a comment to the code trimming actions logs.

@Copilot Copilot AI review requested due to automatic review settings July 1, 2025 07:50
@JoannaaKL JoannaaKL requested a review from a team as a code owner July 1, 2025 07:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a comment to the previously existing line trimming logic in the GitHub actions log processing to improve code clarity.

  • Adds an explanatory comment when the tailLines count is reached to clarify the trimming action.
Comments suppressed due to low confidence (2)

pkg/github/actions.go:802

  • [nitpick] The updated comment is ambiguous. Consider rephrasing it to clearly explain that the loop counts backwards to identify the exact position where the content should be trimmed once the tailLines count is met.
		// Count backwards to find the nth newline from the end and a total number of lines

pkg/github/actions.go:806

  • [nitpick] Consider expanding the comment to briefly mention why trimming the content at this point is beneficial, to improve clarity for future maintainers.
				// If we have reached the tailLines, trim the content

@JoannaaKL JoannaaKL merged commit 721fd3e into github:main Jul 1, 2025
10 checks passed
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.

2 participants