Skip to content

feat(ci): add label-specific issue badges#50

Open
TimeToBuildBob wants to merge 2 commits into
ActivityWatch:masterfrom
TimeToBuildBob:bob/issue-18
Open

feat(ci): add label-specific issue badges#50
TimeToBuildBob wants to merge 2 commits into
ActivityWatch:masterfrom
TimeToBuildBob:bob/issue-18

Conversation

@TimeToBuildBob
Copy link
Copy Markdown
Contributor

Summary

  • add priority: high, priority: medium, and type: bug badge columns to the /ci/ issues table
  • link each badge to the matching filtered GitHub issues search for that repo
  • add a short note explaining what the new badge columns represent

Closes #3

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 19, 2026

Greptile Summary

This PR adds three label-specific badge columns — priority: high, priority: medium, and type: bug — to the /ci/ issues table, linking each badge to the corresponding filtered GitHub issues search for every tracked module.

  • Three new <th> headers and matching <td> cells are inserted for each module row, using shields.io github/issues-raw/{user}/{repo}/{label} endpoints with correctly URL-encoded label values (priority%3A%20high, priority%3A%20medium, type%3A%20bug).
  • A short prose note is appended to the intro paragraph to explain the new columns to visitors.

Confidence Score: 5/5

This PR makes purely additive, template-only changes to a static dashboard page with no logic, data mutations, or security-sensitive paths involved.

The change adds three new badge cells to a Liquid/Pug template. The shields.io endpoints and GitHub search query strings are correctly formed and URL-encoded. No existing behavior is altered.

No files require special attention.

Important Files Changed

Filename Overview
ci.pug Adds three new badge columns (priority: high, priority: medium, type: bug) to the Issues/PRs table, with correct shields.io issues-raw label endpoints and properly URL-encoded GitHub filtered search links; also adds a one-line explanatory note to the page intro paragraph.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[ci.pug table row per module] --> B[Issues badge\nshields.io/github/issues]
    A --> C[High badge\nshields.io/github/issues-raw/.../priority: high]
    A --> D[Medium badge\nshields.io/github/issues-raw/.../priority: medium]
    A --> E[Bugs badge\nshields.io/github/issues-raw/.../type: bug]
    A --> F[PRs badge\nshields.io/github/issues-pr]
    A --> G[LoC badge\nshields.io/tokei/lines]

    C --> C1[GitHub filtered search\nis:issue is:open label:priority: high]
    D --> D1[GitHub filtered search\nis:issue is:open label:priority: medium]
    E --> E1[GitHub filtered search\nis:issue is:open label:type: bug]
Loading

Reviews (2): Last reviewed commit: "fix(ci): normalize badge URL casing" | Re-trigger Greptile

Comment thread ci.pug Outdated
Comment on lines +74 to +83
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20high%22")
img(alt="Open high-priority issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/priority%3A%20high.svg?style=flat-square")

td
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20medium%22")
img(alt="Open medium-priority issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/priority%3A%20medium.svg?style=flat-square")

td
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22type%3A%20bug%22")
img(alt="Open bug issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/type%3A%20bug.svg?style=flat-square")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 The new badge URLs use ActivityWatch (mixed case) for the org name while all existing badge URLs in this file consistently use lowercase activitywatch. GitHub and shields.io treat these as equivalent, but the inconsistency breaks the visual pattern established by lines 71 and 87.

Suggested change
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20high%22")
img(alt="Open high-priority issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/priority%3A%20high.svg?style=flat-square")
td
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20medium%22")
img(alt="Open medium-priority issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/priority%3A%20medium.svg?style=flat-square")
td
a(href="https://github.com/ActivityWatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22type%3A%20bug%22")
img(alt="Open bug issues" src="https://img.shields.io/github/issues-raw/ActivityWatch/{{module}}/type%3A%20bug.svg?style=flat-square")
a(href="https://github.com/activitywatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20high%22")
img(alt="Open high-priority issues" src="https://img.shields.io/github/issues-raw/activitywatch/{{module}}/priority%3A%20high.svg?style=flat-square")
td
a(href="https://github.com/activitywatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22priority%3A%20medium%22")
img(alt="Open medium-priority issues" src="https://img.shields.io/github/issues-raw/activitywatch/{{module}}/priority%3A%20medium.svg?style=flat-square")
td
a(href="https://github.com/activitywatch/{{module}}/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22type%3A%20bug%22")
img(alt="Open bug issues" src="https://img.shields.io/github/issues-raw/activitywatch/{{module}}/type%3A%20bug.svg?style=flat-square")

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

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.

Add label-specific issue badges to module status

1 participant