fix(readme): new forgejo domain link #51
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
xinux/settings!51
Loading…
Reference in a new issue
No description provided.
Delete branch "bahrom04-patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes: #45
@akmal wrote in #51 (comment):
Not yet fixed. Dunno how to fix :(

Good news.
I found several badges from forgejo documentations, we can use some of them. Such as:
It just shows waiting because the last test workflow is on wait. More about badges, maybe we can add more good looking ones too:
https://forgejo.org/docs/latest/user/repository/readme-badges/
TL;DR:
The badges are returned in SVG format and are available under the https://forgejo.example.com/{username}/{repository}/badges path. Forgejo currently supports generating the following badges:
/release.svg: The latest release made in the repository./stars.svg: The number of stars the repository has./issues.svg: The total number of issues in the repository, open and closed combined./issues/open.svg: The number of open issues./issues/closed.svg: The number of closed issues./pulls.svg: The number of pull requests against the repository, open and closed combined./pulls/open.svg: The number of open pull requests./pulls/closed.svg: The number of closed pull requests./workflows/{workflow_file}/badge.svg: The status of the{workflow_file}workflow. Additional restrictions can be given for this badge by using the branch and/or event query parameters. The branch query parameter will display the status of the workflow from the given branch (defaulting to the repository’s main branch if not explicitly specified), while the event parameter will only display results if a run was triggered by the specified event.You can ignore the previous message, I guess I found what I needed.
The link is:
https://img.shields.io/badge/Rust-95%25-blue?logo=Rust. But the problem is that it is hardcoded, I'm thinking about building a small app for constructing this URL.We have a Forgejo API and it's swagger is at https://git.oss.uzinfocom.uz/api/swagger
It returns the bytes, so we can do some math:
420308(Rust) / 420308 + 47584 + 7153 + 3437 + 1389 (All Combined) = 0.87587705862 = 87%
Now it fixes: #45
@ -10,2 +10,2 @@<img align="center" src="https://img.shields.io/github/languages/top/xinux-org/settings?style=flat&logo=rust&logoColor=5277C3&labelColor=ffffff&color=ffffff" alt="Top Used Language"><a href="https://github.com/xinux-org/settings/actions/workflows/test.yml"><img align="center" src="https://img.shields.io/github/actions/workflow/status/xinux-org/settings/test.yml?style=flat&logo=github&logoColor=5277C3&labelColor=ffffff&color=ffffff" alt="Test CI"></a><a href="https://git.oss.uzinfocom.uz/xinux/settings/actions?workflow=test.yml"><img align="center" src="https://git.oss.uzinfocom.uz/xinux/settings/badges/workflows/test.yml/badge.svg?logo=forgejo" alt="Test CI"></a><img src="https://badge.ae5259.deno.net/?instance=git.oss.uzinfocom.uz&owner=xinux&repo=settings" align="center" alt="Most used Language">badge.ae5259.deno.net why your username?
you created small app right as you mentioned previous comment? Can you share source code?
@bahrom04 wrote in #51 (comment):
Deno Deploy used my old username because I signed up using that username. I linked https://badges.aelloc.uz too. We can change links to it. I was just wondering maybe we should use the one Deno Deploy generated for us, in case my domain name dies xD
@bahrom04 wrote in #51 (comment):
Yeah, https://github.com/aelloc/badges
fix(readme): new forgejo domain linkto WIP: fix(readme): new forgejo domain linkReady to merge after those issues: #1 and #2 issues
https://github.com/aelloc/badges/issues
WIP: fix(readme): new forgejo domain linkto fix(readme): new forgejo domain link@akmal what have been changed so far?
No logo?
There was a problem with the link, I fixed it. However, unfortunately, I couldn't get to close those 2 issues you have filed in GitHub yet, I'll let you know once I do.
@bahrom04 wrote in #51 (comment):
Can you check those issues? I have some updates on them.
LGTM!