Skip to content

ci: fix multiple comments in Lighthouse workflow #2030

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 3 commits into from
Aug 4, 2025
Merged

Conversation

bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Aug 3, 2025

The problem is that new comments are being created every time a new commit is added, which generates spam, and it should actually update the existing comment, but it's not working.

I really don't know why the includes is not working properly. I want to try this before disabling the workflow until it is truly fixed.

@bjohansebas bjohansebas requested a review from a team as a code owner August 3, 2025 21:38
Copy link

netlify bot commented Aug 3, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 5f05a7f
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/68902bb6f351c000083d40e1
😎 Deploy Preview https://deploy-preview-2030--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

github-actions bot commented Aug 3, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 56 🟢 100 🟢 96
/en/blog/posts.html mobile 🔴 67 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 60 🟢 95 🟢 96
/ desktop 🟢 97 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 93 🟢 96 🟢 93
/en/5x/api.html desktop 🟠 86 🟢 95 🟢 96

const botComment = comments.find(comment =>
comment.user.type === 'Bot' &&
comment.body.includes('🚦Lighthouse Results')
Copy link
Member

Choose a reason for hiding this comment

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

This space causing issue

Copy link
Contributor

github-actions bot commented Aug 4, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 68 🟢 100 🟢 96
/en/blog/posts.html mobile 🔴 70 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 67 🟢 95 🟢 96
/ desktop 🟢 94 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 93 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 93 🟢 95 🟢 96

Copy link
Contributor

github-actions bot commented Aug 4, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 67 🟢 100 🟢 96
/en/blog/posts.html mobile 🔴 72 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 57 🟢 95 🟢 96
/ desktop 🟢 93 🟢 100 🟠 78
/en/blog/posts.html desktop 🟢 96 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 93 🟢 95 🟢 96

Copy link
Member

@ShubhamOulkar ShubhamOulkar left a comment

Choose a reason for hiding this comment

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

Let's test it.

@ShubhamOulkar ShubhamOulkar merged commit 5df99fe into gh-pages Aug 4, 2025
14 checks passed
@ShubhamOulkar
Copy link
Member

Got fixed 👍

@ShubhamOulkar ShubhamOulkar deleted the comments branch August 6, 2025 04:47
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