Fix: Migrate Achievements plugin to Projects V2 API and improve Habits plugin error handling#1769
Open
dkhokhlov wants to merge 6 commits intolowlighter:masterfrom
Open
Fix: Migrate Achievements plugin to Projects V2 API and improve Habits plugin error handling#1769dkhokhlov wants to merge 6 commits intolowlighter:masterfrom
dkhokhlov wants to merge 6 commits intolowlighter:masterfrom
Conversation
|
I've been pretty busy IRL recently so I haven't had the chance to pull in all these PRs hanging around into @gh-metrics, but if you'd be willing to go file it over there I'll try to find some time pull it in next week ❤️ |
- Use original lowlighter/metrics Docker image as base - Only copy changed GraphQL/JS files (4 files) - Avoids rebuilding Chrome, Node modules, dependencies - Much faster builds for code-only changes
- Filter out null/undefined commits from payload.commits - Add safety check for missing author property - Prevents 'Cannot destructure property author of undefined' error
|
Request pull |
|
Any update on this? 🙂 |
Author
|
meanwhile you could switch to this PR branch (fork of this repo):
https://github.com/dkhokhlov/dkhokhlov/blob/main/.github/workflows/actions.yml#L21 |
artik0din
added a commit
to artik0din/artik0din
that referenced
this pull request
Jan 11, 2026
The achievements plugin uses the deprecated Projects Classic API which GitHub removed in May 2024. This causes a GraphQL error: "Projects (classic) is being deprecated in favor of the new Projects experience" The plugin code queries the Projects Classic API even before filtering out ignored achievements like 'organizer', so there's no workaround. Open issue: lowlighter/metrics#1706 Fix in progress: lowlighter/metrics#1769 The step is commented out with a TODO to re-enable once PR #1769 is merged. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0x07cf-dev
added a commit
to 0x07cf-dev/0x07cf-dev
that referenced
this pull request
Jan 29, 2026
Due to breaking changes in the GitHub API, this feature currently does not work. Waiting for this PR: lowlighter/metrics#1769
0x07cf-dev
added a commit
to 0x07cf-dev/0x07cf-dev
that referenced
this pull request
Jan 29, 2026
* ci: add more metrics * ci: remove coding habits plugin Due to breaking changes in the GitHub API, this feature currently does not work. Waiting for this PR: lowlighter/metrics#1769 * ci: add ignored languages
0x07cf-dev
added a commit
to 0x07cf-dev/0x07cf-dev
that referenced
this pull request
Jan 29, 2026
* ci: add more metrics * ci: remove coding habits plugin Due to breaking changes in the GitHub API, this feature currently does not work. Waiting for this PR: lowlighter/metrics#1769 * ci: add ignored languages * ci: render profile metrics in the repo instead of Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: Migrate Achievements plugin to Projects V2 API and improve Habits plugin error handling
Problem
projectsfield which is no longer available.Solution
Achievements Plugin (Projects V2 Migration)
achievements.graphql,organizations.graphql) to useprojectsV2instead of deprecatedprojectsfieldusers.mjs,organizations.mjs) to referenceprojectsV2.totalCountandprojectsV2.nodesHabits Plugin (Defensive Programming)
commit != null && typeof commit === 'object'commit?.author)Docker Build Optimization (Forks)
ghcr.io/lowlighter/metrics:v3.35-beta)Testing
Fixes #1706, #1739