Skip to content

Commit 2ec0c00

Browse files
committed
address merge conflict
2 parents 534da8a + de82396 commit 2ec0c00

File tree

7 files changed

+160
-350
lines changed

7 files changed

+160
-350
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,45 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches:
6+
- main
67
push:
7-
branches: [ main ]
8+
branches:
9+
- main
810

9-
permissions:
10-
contents: read
11+
permissions: {}
1112

1213
jobs:
1314
test:
1415
name: Test
16+
1517
runs-on: ${{ matrix.os }}
18+
19+
permissions:
20+
contents: read
21+
1622
strategy:
1723
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
19-
go-version: ['1.21']
24+
os:
25+
- ubuntu-latest
26+
- macos-latest
27+
- windows-latest
2028

2129
steps:
22-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
with:
32+
persist-credentials: false
2333

24-
- uses: actions/setup-go@v5
34+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2535
with:
26-
go-version: ${{ matrix.go-version }}
27-
cache: true
36+
go-version: '1.24'
37+
check-latest: 'true'
38+
cache: 'true'
2839

2940
- name: Install dependencies (Linux)
30-
if: matrix.os == 'ubuntu-latest'
41+
if: ${{ matrix.os == 'ubuntu-latest' }}
3142
run: sudo apt-get update && sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
3243

33-
- name: Lint
34-
if: matrix.os != 'windows-latest'
35-
run: make lint
36-
3744
- name: Build
3845
run: make build
3946

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: golangci-lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'main'
7+
8+
permissions: {}
9+
10+
jobs:
11+
golangci-lint:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
with:
20+
persist-credentials: false
21+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
22+
with:
23+
go-version: '1.24'
24+
check-latest: true
25+
26+
- name: golangci-lint
27+
run: |
28+
make lint

Makefile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,50 +77,50 @@ install-appify:
7777
app-bundle: out build-darwin install-appify
7878
@echo "Removing old app bundle..."
7979
@rm -rf "out/$(BUNDLE_NAME).app"
80-
80+
8181
@echo "Creating macOS application bundle with appify..."
82-
82+
8383
# Create universal binary
8484
@echo "Creating universal binary..."
8585
lipo -create out/$(APP_NAME)-darwin-amd64 out/$(APP_NAME)-darwin-arm64 \
8686
-output out/$(APP_NAME)-universal
87-
87+
8888
# Copy logo to out directory
8989
cp media/logo.png out/logo.png
90-
90+
9191
# Create menubar icon (small version with transparency)
9292
@echo "Creating menubar icon..."
9393
sips -z 44 44 media/logo.png --out out/menubar-icon.png
9494
# Ensure the icon has an alpha channel
9595
sips -s format png out/menubar-icon.png --out out/menubar-icon.png
96-
96+
9797
# Create app bundle with appify using universal binary
9898
cd out && appify -name "$(BUNDLE_NAME)" \
9999
-icon logo.png \
100100
-id "$(BUNDLE_ID)" \
101101
$(APP_NAME)-universal
102-
102+
103103
# Move the generated app to the expected location
104104
@if [ -f "out/$(BUNDLE_NAME)-universal.app" ]; then \
105105
mv "out/$(BUNDLE_NAME)-universal.app" "out/$(BUNDLE_NAME).app"; \
106106
elif [ ! -d "out/$(BUNDLE_NAME).app" ]; then \
107107
echo "Warning: App bundle not found in expected location"; \
108108
fi
109-
109+
110110
# Copy menubar icon to Resources
111111
@echo "Copying menubar icon to app bundle..."
112112
cp out/menubar-icon.png "out/$(BUNDLE_NAME).app/Contents/Resources/menubar-icon.png"
113-
113+
114114
# Create English localization
115115
@echo "Creating English localization..."
116116
mkdir -p "out/$(BUNDLE_NAME).app/Contents/Resources/en.lproj"
117-
117+
118118
# Fix the executable name (appify adds .app suffix which we don't want)
119119
@echo "Fixing executable name..."
120120
@if [ -f "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME).app" ]; then \
121121
mv "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME).app" "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME)"; \
122122
fi
123-
123+
124124
# Fix the Info.plist
125125
@echo "Fixing Info.plist..."
126126
@/usr/libexec/PlistBuddy -c "Set :CFBundleExecutable Ready\\ to\\ Review" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
@@ -130,14 +130,14 @@ app-bundle: out build-darwin install-appify
130130
/usr/libexec/PlistBuddy -c "Set :CFBundleDevelopmentRegion en" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
131131
@/usr/libexec/PlistBuddy -c "Add :NSUserNotificationAlertStyle string alert" "out/$(BUNDLE_NAME).app/Contents/Info.plist" 2>/dev/null || \
132132
/usr/libexec/PlistBuddy -c "Set :NSUserNotificationAlertStyle alert" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
133-
133+
134134
# Remove extended attributes and code sign the app bundle
135135
@echo "Preparing app bundle for signing..."
136136
xattr -cr "out/$(BUNDLE_NAME).app"
137-
137+
138138
@echo "Code signing the app bundle..."
139139
codesign --force --deep --sign - --options runtime "out/$(BUNDLE_NAME).app"
140-
140+
141141
@echo "macOS app bundle created: out/$(BUNDLE_NAME).app"
142142

143143
# Install the application (detects OS automatically)

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ The Goose is part of the [codeGROOVE](https://codegroove.dev) developer accelera
7171

7272
## Privacy
7373

74-
- Your GitHub token is never stored or logged
75-
- PR metadata cached for up to 20 days (performance)
76-
- No telemetry or external data collection
74+
- Your GitHub token is used to authenticate against GitHub and codeGROOVE's API for state-machine & natural-language processing
75+
- Your GitHub token is never stored or logged,
76+
- PR metadata may be locally or remotely cached for up to 20 days (performance)
77+
- No telemetry is collected
7778

7879
---
7980

cmd/goose/github.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,15 +621,17 @@ func (app *App) fetchTurnDataAsync(ctx context.Context, issues []*github.Issue,
621621
}
622622
}
623623

624-
// Check for newly blocked PRs after Turn data is applied
625-
app.checkForNewlyBlockedPRs(ctx)
624+
// Only check for newly blocked PRs if there were actual changes
625+
if actualChanges > 0 {
626+
app.checkForNewlyBlockedPRs(ctx)
627+
}
626628

627629
// Update tray title and menu with final Turn data if menu is already initialized
628630
app.setTrayTitle()
629631
if app.menuInitialized {
630632
// Only trigger menu update if PR data actually changed
631633
if actualChanges > 0 {
632-
app.updateMenuIfChanged(ctx)
634+
app.updateMenu(ctx)
633635
}
634636
}
635637
}

0 commit comments

Comments
 (0)