- Swift 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Show the icon in the README and document how to regenerate it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| Config | ||
| Scripts | ||
| WoodpeckerMenubar | ||
| WoodpeckerMenubar.xcodeproj | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Woodpecker Menubar
A macOS menu bar app that polls a Woodpecker CI instance and shows what's building right now.
- Badge — the menu bar icon carries a count of the pipelines in flight.
- Popover — click it for the running pipelines, each with an overall progress bar and an expandable list of its jobs.
- Notifications — a local notification when a pipeline succeeds, fails, or needs approval. Clicking it opens that pipeline in Woodpecker.
The app runs as a menu bar accessory (LSUIElement), so it has no Dock icon and
no window of its own apart from setup and Settings.
Setup
On first launch the setup window asks for two things:
- Server address — the URL you'd open in a browser, e.g.
https://ci.example.com. A bare hostname, a trailing slash, or a trailing/apiare all accepted and normalised. - Access token — in Woodpecker, open your user settings (
/user) and copy the personal access token. The setup screen links straight there.
The token is stored in the login keychain, not in preferences. The server address
and everything else lives in UserDefaults.
How progress is calculated
A CI job has no inherent percentage, so the app derives one:
- Pipeline level — the fraction of its jobs that have finished, with the job currently running counted partially.
- Job level — elapsed time against how long that same job took on previous successful runs. Those durations are learned as pipelines complete (and seeded once per repo from the last successful pipeline), stored as an exponential moving average so one slow run doesn't skew the estimate.
Until a job has been seen to succeed at least once there's no estimate, and the bar animates as indeterminate rather than inventing a number.
API endpoints used
| Endpoint | Purpose |
|---|---|
GET /api/user |
validate credentials during setup |
GET /api/user/feed |
poll recent pipeline activity across all repos |
GET /api/repos/{repo_id}/pipelines/{number} |
step tree for in-flight pipelines |
GET /api/repos/{repo_id}/pipelines |
find the last successful run to seed estimates |
GET /api/user/repos |
fall back for repo names if the feed omits full_name |
Authentication is Authorization: Bearer <token>.
Only pipelines that are running, queued, or awaiting approval get a detail request each tick, so the polling cost scales with what's actually building rather than with the size of the instance.
Building
Open WoodpeckerMenubar.xcodeproj in Xcode 26 and run. macOS 26.5+.
To sign with your own Apple developer team, create Config/Local.xcconfig
(it's git-ignored) containing:
DEVELOPMENT_TEAM = ABCDE12345
You may also need to change PRODUCT_BUNDLE_IDENTIFIER, since the existing one
is registered to another team.
The app icon is drawn in code. To change it, edit Scripts/make_icon.swift and
regenerate every size with:
swift Scripts/make_icon.swift WoodpeckerMenubar/Assets.xcassets/AppIcon.appiconset
License
MIT, see LICENSE.
Notes
- The app is sandboxed with the outgoing-network entitlement only.
Config/Info.plistsetsNSAllowsArbitraryLoads, because self-hosted Woodpecker instances are commonly reachable only over plain HTTP on an internal network. The app only ever contacts the one server you configure. If yours is on HTTPS, nothing here weakens that connection.- Don't add
NSAllowsLocalNetworking(orNSAllowsArbitraryLoadsInWebContent/NSAllowsArbitraryLoadsForMedia) next to it. When one of those granular keys is present, macOS ignoresNSAllowsArbitraryLoadsaltogether and plain-HTTP servers get blocked again withNSURLErrorAppTransportSecurityRequiresSecureConnection(-1022). Verified on macOS 26:NSAllowsArbitraryLoadsalone allowshttp://, the two keys together block it.