Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flat-square action badge style #34062

Merged
merged 8 commits into from
Apr 1, 2025

Conversation

bytedream
Copy link
Contributor

@bytedream bytedream commented Mar 29, 2025

Adds the flat-square style to action badges. Styles can be selected by adding ?style=<style> to the badge endpoint. If no style query is given, or if the query is invalid, the style defaults to flat.

flat
Screenshot_20250329_113611

flat-square
Screenshot_20250329_113619

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 29, 2025
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 29, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Mar 29, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 31, 2025
@lunny lunny added this to the 1.24.0 milestone Mar 31, 2025
@wxiaoguang
Copy link
Contributor

Just curious, where does the name flat-square come from?

@pull-request-size pull-request-size bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 1, 2025
@wxiaoguang wxiaoguang force-pushed the action-badge-style-flat-square branch from 7bb15f1 to ad0f9e2 Compare April 1, 2025 02:11
@bytedream
Copy link
Contributor Author

bytedream commented Apr 1, 2025

Just curious, where does the name flat-square come from?

Shields.io also has this style and calls it flat-square. From what I've seen flat and flat-square are used >99% of the time when doing shields.io badges.

@wxiaoguang
Copy link
Contributor

Thank you very much, let's document it : 3da42bc

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 1, 2025
@wxiaoguang wxiaoguang enabled auto-merge (squash) April 1, 2025 09:16
@wxiaoguang wxiaoguang merged commit 56e42be into go-gitea:main Apr 1, 2025
26 checks passed
@lunny lunny added the type/enhancement An improvement of existing functionality label Apr 1, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 3, 2025
* giteaofficial/main:
  Refactor Branch struct in package modules/git (go-gitea#33980)
  Support creating relative link to raw path in markdown (go-gitea#34105)
  Add new CLI flags to set name and scopes when creating a user with access token (go-gitea#34080)
  Do not show 500 error when default branch doesn't exist (go-gitea#34096)
  Return default avatar url when user id is zero rather than updating database (go-gitea#34094)
  [skip ci] Updated translations via Crowdin
  Fix return bug (go-gitea#34093)
  Move ParseCommitWithSSHSignature to service layer (go-gitea#34087)
  fix(i18n): clarify ownership in password change error messages (go-gitea#34092)
  Enable addtional linters (go-gitea#34085)
  Add flat-square action badge style (go-gitea#34062)
  Fix some UI bugs and clean up unused tests (go-gitea#34088)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants