JC

jkerketta/crowsnest

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 质量 51 趋势 4MIT

一个iOS部件,显示您的代理的 PR 和CI 更新他们降落的时刻.

概览

由 SwiftUI 和 WidgetKit 构建的 iOS 部件, 苹果用于家用屏幕部件的框架, 它将您打开的拉取请求和它们的 CI 状态一目了然, 这样您就可以跳过打开 GitHub 。 从新的克隆到工作部件,分五个步骤: 1. Clone this repo并用Xcode打开工程. 用您的 GitHub 账户替换您的操作规范 : 2. 选择一个iPhone 18模拟器(iOS 26.2)作为运行目的地. 3.与Cmd+R一起建设并运行. 第一次发布时,应用程序要求一个符号. 粘贴经典的 GitHub 个人访问 Token (PAT) 并带有 repo 范围. 该应用程序在保存前对 GitHub 进行了验证 。 4. 添加部件。 长期按住家用屏幕,自带编辑,再添加部件. 搜索"Crowsnest"并选择PRPreview部件. 5. 在应用程序内拉出新鲜空气。 部件每15分钟自动刷新一次。 - Xcode 26(项目目标为iOS 26.2 SDK) - 运行iOS 26.

概述(AI 翻译)

由 SwiftUI 和 WidgetKit 构建的 iOS 部件, 苹果用于家用屏幕部件的框架, 它将您打开的拉取请求和它们的 CI 状态一目了然, 这样您就可以跳过打开 GitHub 。

□ 快开始

从新的克隆到工作部件,分五个步骤:

  1. Clone this repo并用Xcode打开工程. 用您的 GitHub 账户替换 YOUR-ORG :

  2. 选择一个iPhone 18模拟器(iOS 26.2)作为运行目的地. 3.与Cmd+R一起建设并运行. 第一次发布时,应用程序要求一个符号. 粘贴经典的 GitHub 个人访问 Token (PAT) 并带有 [[T1] 范围 。 该应用程序在保存前对 GitHub 进行了验证 。

  3. 添加部件。 长期按住家用屏幕,自带编辑,再添加部件. 搜索"Crowsnest"并选择PRPreview部件.

  4. 在应用程序内拉出新鲜空气。 部件每15分钟自动刷新一次。

□ 安装

所需经费:

  • Xcode 26(项目目标是iOS 26.2 SDK)
  • 运行iOS 26.2的模拟器或设备
  • 一个GitHub账户,有一个典型的PAT,具有repo范围

从命令行构建 :

运行单元测试套房。 该计划的可测试点位于[T3]目标.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Crowsnest

An iOS widget built with SwiftUI and WidgetKit, Apple’s framework for home screen widgets, that keeps your open pull requests and their CI status one glance away so you can skip opening GitHub.

Quick Start

Get from a fresh clone to a working widget in five steps:

  1. Clone this repo and open the project in Xcode. Replace YOUR-ORG with your GitHub account:
git clone [email protected]:YOUR-ORG/ios-widget.git
cd ios-widget
open ios-widget.xcodeproj
  1. Select an iPhone 18 simulator (iOS 26.2) as the run destination.
  2. Build and run with Cmd+R. On first launch the app asks for a token. Paste a classic GitHub Personal Access Token (PAT) with the repo scope. The app validates it against GitHub before saving.
  3. Add the widget. Long-press the home screen, tap Edit, then Add Widget. Search “Crowsnest” and pick the PRPreview widget.
  4. Pull to refresh inside the app. The widget then refreshes on its own every 15 minutes.

Installation

Requirements:

  • Xcode 26 (the project targets the iOS 26.2 SDK)
  • A simulator or device running iOS 26.2
  • A GitHub account with a classic PAT that has the repo scope

Build from the command line:

xcodebuild build -scheme ios-widget -destination 'generic/platform=iOS Simulator'

Run the unit test suite. The scheme’s Testable points at the ios-widgetTests target. Pick a simulator name that exists on your machine:

xcodebuild test -scheme ios-widget -destination 'platform=iOS Simulator,name=iPhone 18'

To build for a physical device, sign with your development team:

xcodebuild build -scheme ios-widget -destination 'generic/platform=iOS' -allowProvisioningUpdates

The tests use the Swift Testing framework (import Testing), not XCTest.

Usage

How it works

Crowsnest is a two-bundle app. The main app owns login and the PR list. The widget extension renders the lock screen. The two never talk directly. They share data through an App Group, the shared container that both bundles can read.

  1. Configure. The app shows a token screen until you enter a valid PAT. On save, TokenStore writes the token to the Keychain and mirrors a copy into the shared App Group container, so the widget can read it without a shared Keychain access group.
  2. Refresh. Pull to refresh, or let the app’s background transition trigger it. WidgetRefreshCoordinator fetches from the GitHub GraphQL API (GraphQL, GitHub’s typed query API), writes a PRCacheData to the App Group, then calls WidgetCenter.reloadAllTimelines().
  3. Render. The widget provider builds a timeline entry from token, cache, and fetch outcome, then shows a queue tile. A failed fetch never renders as “all caught up”. It renders as an error entry instead.

What the widget shows

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add jkerketta/crowsnest
新手?先看 mcpskill.org 教程 →