Skip to content

Add Codeberg support#766

Merged
amio merged 3 commits into
mainfrom
feat/codeberg-support-71452159505630164
May 6, 2026
Merged

Add Codeberg support#766
amio merged 3 commits into
mainfrom
feat/codeberg-support-71452159505630164

Conversation

@amio

@amio amio commented May 6, 2026

Copy link
Copy Markdown
Member

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

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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented May 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
badgen.net Ready Ready Preview, Comment May 6, 2026 7:17am

Request Review

Comment thread libs/badge-list.ts Outdated
// // source control
// 'github',
// 'gitlab',
'codeberg',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

need to be added in badge-list2.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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>
@amio amio merged commit 50009fa into main May 6, 2026
7 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.

1 participant