{"id":13724481,"url":"https://github.com/OskarAhl/Lighthouse-github-action-comment","last_synced_at":"2025-05-07T18:32:26.818Z","repository":{"id":48976536,"uuid":"304036795","full_name":"OskarAhl/Lighthouse-github-action-comment","owner":"OskarAhl","description":"Automated lighthouse metrics as a comment to your Vercel PR","archived":false,"fork":false,"pushed_at":"2021-07-02T16:05:01.000Z","size":11,"stargazers_count":60,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-04T01:25:19.854Z","etag":null,"topics":["google","lighthouse","vercel","zeit"],"latest_commit_sha":null,"homepage":"https://github.com/OskarAhl/Lighthouse-github-action-comment/pull/1","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OskarAhl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-14T14:14:34.000Z","updated_at":"2024-06-05T22:22:23.000Z","dependencies_parsed_at":"2022-09-04T07:41:01.448Z","dependency_job_id":null,"html_url":"https://github.com/OskarAhl/Lighthouse-github-action-comment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OskarAhl%2FLighthouse-github-action-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OskarAhl%2FLighthouse-github-action-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OskarAhl%2FLighthouse-github-action-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OskarAhl%2FLighthouse-github-action-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OskarAhl","download_url":"https://codeload.github.com/OskarAhl/Lighthouse-github-action-comment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224636590,"owners_count":17344577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","lighthouse","vercel","zeit"],"created_at":"2024-08-03T01:01:57.985Z","updated_at":"2024-11-14T14:31:02.426Z","avatar_url":"https://github.com/OskarAhl.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"### 🚀 Automated Lighthouse metrics to your PR with Vercel and Github Actions.\n\nThe complete action can be found in [Lighthouse-github-action/.github/workflows/](https://github.com/OskarAhl/Lighthouse-github-action/blob/main/.github/workflows/lighthouse-on-vercel-preview-url.yml)\n\n![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wh034wt0hxgtedhskzwo.png)\n\n### Action workflow\n1. Get the preview url for the PR (from Vercel).\n2. Run a Lighthouse audit on the preview url.\n3. Format the score to a table (+throw in a few emojis).\n4. Post a comment on the PR with the formatted score.\n\n### Integrations used:\n* [treosh/lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action)\n* [sticky-pull-request-comment](https://github.com/marketplace/actions/sticky-pull-request-comment)\n* [vercel-preview-url-action](https://github.com/marketplace/actions/capture-vercel-preview-url)\n\n### Limitations:\n* Always runs the Lighthouse audit on the root page.\n\n### Potential future improvements:\n* Combine the action with a budget to prevent PRs that bring the metrics below a set treshhold.\n* Run the audit only on the pages affected by the PR.\n* Compare the collected metrics with the actual metrics of your production site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOskarAhl%2FLighthouse-github-action-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOskarAhl%2FLighthouse-github-action-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOskarAhl%2FLighthouse-github-action-comment/lists"}