Add Codeberg support#766
Conversation
Implemented support for various Codeberg badges including: - stars, forks, issues (open/closed), PRs (all/open/closed) - releases (all/latest), tags - commits (count/last-commit) Added: - `libs/codeberg.ts`: Utility for Codeberg API interactions. - `pages/api/codeberg.ts`: API handler for Codeberg badges. Updated: - `next.config.js`: Added rewrite rules for `/codeberg` path. - `libs/badge-list.ts`: Included codeberg in live badge list. - `test/e2e.test.mjs`: Added E2E tests for Codeberg badges. Co-authored-by: amio <215282+amio@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| // // source control | ||
| // 'github', | ||
| // 'gitlab', | ||
| 'codeberg', |
There was a problem hiding this comment.
need to be added in badge-list2.ts
There was a problem hiding this comment.
Added codeberg to libs/badge-list2.ts as requested.
- Updated `libs/badge-list2.ts` to include `codeberg`. - Fixed switch-case block scope in `pages/api/codeberg.ts`. - Removed accidental log files. Co-authored-by: amio <215282+amio@users.noreply.github.com>
- Implemented Codeberg badge support with a variety of metrics. - Added `libs/codeberg.ts` and `pages/api/codeberg.ts`. - Registered `/codeberg` path in `next.config.js`. - Added `codeberg` to `libs/badge-list2.ts` and marked `libs/badge-list.ts` as deprecated. - Added E2E tests in `test/e2e.test.mjs`. Co-authored-by: amio <215282+amio@users.noreply.github.com>
Support for codeberg.org badges has been implemented. This includes a variety of metrics such as stars, forks, issues, pull requests, releases, tags, and commit data. The implementation leverages the Codeberg (Gitea/Forgejo) API and includes comprehensive E2E tests and documentation examples.
PR created automatically by Jules for task 71452159505630164 started by @amio