Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
874f7bc
feat: continue and skip rebase
craigharman Jun 19, 2026
f55ca09
fix: git tests for rebasing
craigharman Jun 19, 2026
7e07df3
feat: liquid glass interface
craigharman Jun 19, 2026
8f7c2c9
feat: add copy to clipboard button to error banner
craigharman Jun 19, 2026
3852ef3
Merge branch 'main' into develop
craigharman Jun 19, 2026
eac879e
feat:automatic software updates using Sparkle
craigharman Jun 19, 2026
9074f29
Gate the step on secrets.SPARKLE_PRIVATE_KEY
craigharman Jun 19, 2026
13f17fe
Ensure we are committing on the latest main branch
craigharman Jun 19, 2026
7487310
Disable update option if sparkle unavailable
craigharman Jun 19, 2026
354016d
Fail loudly on build failure
craigharman Jun 19, 2026
cd5dde1
Potential fix for pull request finding
craigharman Jun 19, 2026
d49ba06
fix: prevent appcast.xml commit from retriggering Release workflow
Copilot Jun 19, 2026
0c9ce1c
Strip any new lines from secret
craigharman Jun 19, 2026
3293625
Warn if sparkle not set
craigharman Jun 19, 2026
a6a5c24
Add guard when version already exists
craigharman Jun 19, 2026
ff59aa8
Fix versioning issues with sparkle
craigharman Jun 19, 2026
ee5d2b7
Potential fix for pull request finding
craigharman Jun 19, 2026
730c686
Potential fix for pull request finding
craigharman Jun 19, 2026
7b23eeb
Potential fix for pull request finding
craigharman Jun 19, 2026
7e96235
Skip appcast.xml when no changes
craigharman Jun 19, 2026
b904ab8
Update agents and claude files
craigharman Jun 19, 2026
4f1a868
fix: sign_update matched the wrong binary
craigharman Jun 19, 2026
895e093
Merge develop changes
craigharman Jun 19, 2026
a9338d0
Merge branch 'main' into develop
craigharman Jun 19, 2026
626e3f8
feat: allow push/pull indicators in sidebar to actually do the push/p…
craigharman Jun 19, 2026
7a1a0a6
fix: when pushing a remote branch include the remote name as well as …
craigharman Jun 19, 2026
70df5fd
Do not fallback to origin show error instead
craigharman Jun 19, 2026
ff5ed2c
fix: make the sparkle search less specific
craigharman Jun 19, 2026
0f530b7
Merge branch 'main' into develop
craigharman Jun 20, 2026
b3e181d
Fix release.yml
craigharman Jun 20, 2026
528f9e7
Merge branch 'main' into develop
craigharman Jun 20, 2026
ff6c4ac
fix: download Sparkle into project from CI
craigharman Jun 20, 2026
6e8b217
fix: access to sparkle key file
craigharman Jun 20, 2026
505d31a
Merge main into develop
craigharman Jun 20, 2026
93cafbd
Merge branch 'main' into develop
craigharman Jun 20, 2026
4028d96
fix: add debugging to deployment
craigharman Jun 20, 2026
fef2820
Merge branch 'main' into develop
craigharman Jun 20, 2026
25103c1
fix: add automerge to release
craigharman Jun 20, 2026
dfb183d
test:Add checks for pull/push numbers
craigharman Jun 21, 2026
6b7a74d
feat:automate deployment workflow
craigharman Jun 22, 2026
1707933
fix: merge conflicts not visible when files are staged
craigharman Jun 23, 2026
563c1d9
Complete merge
craigharman Jun 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions .github/workflows/auto-merge-release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,62 @@
name: Auto-merge release-please PR

on:
pull_request:
# Triggers after the Release workflow completes on main.
# workflow_run always runs in the default-branch context, so it is never
# blocked by the "first-time contributor" approval gate.
workflow_run:
workflows: ["Release"]
types: [completed]
branches: [main]
types: [opened, synchronize, reopened]

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
# Only run on release-please PRs
if: github.actor == 'github-actions[bot]' && startsWith(github.head_ref, 'release-please--')
runs-on: macos-26
# Only proceed when the Release workflow succeeded
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Find open release-please PR
id: find-pr
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list \
--repo "${{ github.repository }}" \
--head "release-please--branches--main" \
--state open \
--json number \
--jq '.[0].number // empty')

if [[ -z "${PR_NUMBER}" ]]; then
echo "No open release-please PR found; nothing to do."
echo "found=false" >> "$GITHUB_OUTPUT"
else
echo "Found release-please PR #${PR_NUMBER}"
echo "found=true" >> "$GITHUB_OUTPUT"
echo "number=${PR_NUMBER}" >> "$GITHUB_OUTPUT"
fi

- uses: actions/checkout@v4
if: steps.find-pr.outputs.found == 'true'
with:
ref: release-please--branches--main

- name: Build
if: steps.find-pr.outputs.found == 'true'
run: swift build

- name: Run tests
if: steps.find-pr.outputs.found == 'true'
run: swift run GitKitChecks

- name: Approve and auto-merge
if: steps.find-pr.outputs.found == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr review "${{ github.event.pull_request.number }}" --approve
gh pr merge "${{ github.event.pull_request.number }}" --squash --auto
gh pr review "${{ steps.find-pr.outputs.number }}" --approve
gh pr merge "${{ steps.find-pr.outputs.number }}" --squash --auto
10 changes: 8 additions & 2 deletions Sources/GitKit/Models/FileStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ public struct WorkingTreeStatus: Sendable {
public let isDetached: Bool
public let files: [FileStatus]

public var stagedFiles: [FileStatus] { files.filter(\.isStaged) }
public var unstagedFiles: [FileStatus] { files.filter { $0.hasUnstagedChanges || $0.isUntracked } }
/// Conflicted (unmerged) files. Surfaced separately so they don't masquerade as ordinary
/// staged/unstaged edits — an unmerged entry reports both an index and a worktree state.
public var conflictedFiles: [FileStatus] { files.filter(\.isConflicted) }
public var stagedFiles: [FileStatus] { files.filter { $0.isStaged && !$0.isConflicted } }
public var unstagedFiles: [FileStatus] {
files.filter { !$0.isConflicted && ($0.hasUnstagedChanges || $0.isUntracked) }
}
public var hasConflicts: Bool { files.contains(where: \.isConflicted) }
public var hasChanges: Bool { !files.isEmpty }

public init(
Expand Down
71 changes: 71 additions & 0 deletions Sources/Gitify/Views/WorkingTreeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ struct WorkingTreeView: View {

private func fileList(_ status: WorkingTreeStatus) -> some View {
// Build a flat ordered list of FileSelection entries for shift-click range computation.
let conflictedFiles = status.conflictedFiles.filter(matches)
let stagedFiles = status.stagedFiles.filter(matches)
let unstagedFiles = status.unstagedFiles.filter(matches)
let orderedSelections: [FileSelection] =
conflictedFiles.map { FileSelection(path: $0.path, staged: false) } +
stagedFiles.map { FileSelection(path: $0.path, staged: true) } +
unstagedFiles.map { FileSelection(path: $0.path, staged: false) }

Expand All @@ -138,6 +140,24 @@ struct WorkingTreeView: View {
let unstagedPeers = selectedUnstagedFiles(in: status)

return List {
if !conflictedFiles.isEmpty {
Section {
ForEach(conflictedFiles) { file in
ConflictFileRow(file: file, viewModel: viewModel,
isSelected: selection.contains(FileSelection(path: file.path, staged: false)),
onResolveInEditor: { conflictTarget = ConflictTarget(path: file.path) },
onClick: { mods in
handleRowClick(FileSelection(path: file.path, staged: false),
file: file, orderedSelections: orderedSelections, modifiers: mods)
})
}
} header: {
sectionHeader("Conflicts", count: conflictedFiles.count) {
Text("resolve before committing")
.font(.caption).foregroundStyle(.orange)
}
}
}
if !stagedFiles.isEmpty {
Section {
ForEach(stagedFiles) { file in
Expand Down Expand Up @@ -361,6 +381,57 @@ private struct StagingFileRow: View {
}
}

/// A conflicted-file row with always-visible resolution actions, so a merge conflict is
/// obvious and fixable without discovering a hidden context menu.
private struct ConflictFileRow: View {
let file: FileStatus
@Bindable var viewModel: RepositoryViewModel
let isSelected: Bool
var onResolveInEditor: () -> Void
var onClick: (NSEvent.ModifierFlags) -> Void

var body: some View {
HStack(spacing: 8) {
StatusBadge(file: file)
VStack(alignment: .leading, spacing: 1) {
Text(URL(fileURLWithPath: file.path).lastPathComponent)
Text(conflictDescription).font(.caption).foregroundStyle(.orange).lineLimit(1)
}
Spacer()
Button("Resolve…") { onResolveInEditor() }
.buttonStyle(.borderless).font(.caption)
Menu {
Button("Take Ours (current branch)") { Task { await viewModel.resolveConflict(file, useOurs: true) } }
Button("Take Theirs (incoming)") { Task { await viewModel.resolveConflict(file, useOurs: false) } }
Divider()
Button("Mark Resolved") { Task { await viewModel.markResolved(file) } }
} label: {
Image(systemName: "ellipsis.circle")
}
.menuStyle(.borderlessButton)
.fixedSize()
}
.padding(.vertical, 2)
.listRowBackground(isSelected ? Color.accentColor.opacity(0.2) : Color.clear)
.contentShape(Rectangle())
.onTapGesture { onClick(currentModifiers()) }
}

/// Human-readable conflict kind derived from the unmerged XY state pair.
private var conflictDescription: String {
switch (file.indexState, file.worktreeState) {
case (.deleted, .deleted): return "both deleted"
case (.added, .updatedButUnmerged): return "added by us"
case (.updatedButUnmerged, .added): return "added by them"
case (.deleted, .updatedButUnmerged): return "deleted by us"
case (.updatedButUnmerged, .deleted): return "deleted by them"
case (.added, .added): return "both added"
case (.updatedButUnmerged, .updatedButUnmerged): return "both modified"
default: return "conflicted"
}
}
}

/// Colored M/A/D/R/?? badge mirroring git's status letters.
struct StatusBadge: View {
let file: FileStatus
Expand Down
Loading
Loading