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

feat: outdated comment action option to minimize previous reg-action comments #138

Merged
merged 1 commit into from May 16, 2024

Conversation

krrrr38
Copy link
Contributor

@krrrr38 krrrr38 commented May 12, 2024

closes #137

Verification

run this impl on private repository.

image image


export const isRegActionComment = ({ artifactName, body }: { artifactName: string; body: string }): boolean => {
return (
body.includes(`## ArtifactName: \`${artifactName}\``) || body.includes(`## ArtifactName: [\`${artifactName}\`]`)
Copy link
Contributor Author

@krrrr38 krrrr38 May 12, 2024

Choose a reason for hiding this comment

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

This logic is a little bit fragile. any opinions are welcome.

For example, one of other solutions is just add fixed comment like 【reg-action report for ${artifactName}】.

@bokuweb
Copy link
Member

bokuweb commented May 16, 2024

@krrrr38 Thanks for your work. LGTM

@bokuweb bokuweb merged commit 62a33a9 into reg-viz:main May 16, 2024
1 of 2 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.

Support minimize previous comments
2 participants