Skip to content

Escape '-' and '_' in the 'github' badge - #22

Merged
Paebbels merged 1 commit into
devfrom
claude/shields-escape-github
Oct 6, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/shields-escape-github

Conversation

@pytooling-claude

Copy link
Copy Markdown

Bug Fixes

  • pyTooling.Sphinx.Shields: the badge github is a static badge, badge/<organization>-<repository>-<color>, whose fields shields.io separates at - and in which it reads _ as a space. An organization or repository containing either was drawn wrongly - edaa-org/pyEDAA.Reports as label edaa, message org. Both are escaped now (--, __), with the escaping src-license and doc-license already use; the badge's link keeps the names as written.

Unit Tests

  • tests/unit/Shields.py: GitHub_Escaped formats the badge of edaa-org/my_repo and checks the image URL and the link.

Related Issues and Pull-Requests

  • Found while applying shields to pyEDAA.Reports' documentation (edaa-org/pyEDAA.Reports, organization edaa-org).

shields.io reads a single '-' in a static badge as the separator of label,
message and color, and '_' as a space, so 'edaa-org/pyEDAA.Reports' drew the
label 'edaa' and the message 'org'.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@codacy-production

codacy-production Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 100.00% diff coverage · +0.05% coverage variation

Metric Results
Coverage variation ✅ +0.05% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b19ac51) 1311 845 64.45%
Head commit (de16ada) 1313 (+2) 847 (+2) 64.51% (+0.05%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#22) 4 4 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.67%. Comparing base (b19ac51) to head (de16ada).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #22      +/-   ##
==========================================
+ Coverage   63.61%   63.67%   +0.05%     
==========================================
  Files          10       10              
  Lines        1311     1313       +2     
  Branches      220      220              
==========================================
+ Hits          834      836       +2     
  Misses        466      466              
  Partials       11       11              
Flag Coverage Δ
unittests 63.67% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Paebbels
Paebbels merged commit 4f91dfc into dev Oct 6, 2026
53 checks passed
@Paebbels
Paebbels deleted the claude/shields-escape-github branch October 6, 2026 13:20
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 6, 2026
This was referenced Oct 17, 2026
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants