Skip to content

fix: command framework polish, CI fixes, and CR_PAT auth#23

Merged
sunba91-su merged 7 commits into
mainfrom
feat/ci-pipeline
Jun 8, 2026
Merged

fix: command framework polish, CI fixes, and CR_PAT auth#23
sunba91-su merged 7 commits into
mainfrom
feat/ci-pipeline

Conversation

@sunba91-su

Copy link
Copy Markdown
Owner

Changes

All commits on feat/ci-pipeline that weren't in the initial merge:

CI fixes

  • Bump builder from golang:1.22-alpine → 1.25-alpine (fixes go.mod version mismatch)
  • Remove -cover/-coverprofile flags (covdata conflict with -race)
  • Use CR_PAT secret instead of GITHUB_TOKEN for ghcr.io auth (avoids org package creation permission error)

Command framework polish (#22)

  • PermissionMember now validates team membership via DB (non-members rejected at registry level)
  • Multi-team users can use --team "Team Name" with submit/status
  • New /standup cancel command to abort active conversation
  • New /standup list command to show user's teams
  • Duplicate daily submissions are prevented
  • 4 new tests, 25 total — all passing

Files

  • .github/workflows/ci.yml — CR_PAT, builder version, -cover removal
  • .github/workflows/release.yml — CR_PAT
  • Dockerfile — golang:1.25-alpine builder
  • internal/commands/registry.go — PermissionMember checks team membership
  • internal/commands/standup.go — multi-team, cancel, list, dupe prevention
  • internal/commands/standup_test.go — 4 new tests
  • internal/commands/help.go — updated with cancel/list

Closes #22

sunba91-su and others added 7 commits June 8, 2026 16:56
- CI: 4 jobs (lint/build/test+docker) with race detection, coverage artifact,
  and ghcr.io push on main
- Release: on v* tag — vet+test, Docker push with semver+latest tags,
  auto-generated release notes via softprops/action-gh-release
- Dockerfile: proxy ARGs for local builds behind filtered internet
- docker-compose.yml: proxy args passthrough from .env
- Makefile: proxy-forwarding docker-build target
- .env.example: commented proxy vars

Closes #9
covdata tool conflicts with -race on Go 1.22 runner.
Replace with -cover flag for inline coverage output.
go.mod requires go 1.25.3 but Dockerfile used 1.22-alpine,
causing go mod download to fail with version mismatch.
covdata tool conflicts with -race on Go 1.22 runner for
packages without test files, causing CI to fail with exit code 1.
Coverage tracking moved to issue #21.
…, dupe prevention

- PermissionMember now checks Store.GetTeamsForUser (non-members rejected at registry level)
- handleSubmit/handleStatus support --team flag for multi-team users
- New /standup cancel command aborts active conversation
- New /standup list command shows user's teams
- activeOrNewSession prevents duplicate daily submissions
- Help output updated with cancel/list entries
- 4 new tests: CancelNoConversation, CancelActive, ListTeams, SubmitDuplicateSession

Closes #22
Default GITHUB_TOKEN lacks permission to create org packages.
Switching to a Personal Access Token (CR_PAT) with write:packages scope.
@sunba91-su sunba91-su merged commit ce9e04a into main Jun 8, 2026
3 of 4 checks passed
@sunba91-su sunba91-su deleted the feat/ci-pipeline branch June 8, 2026 15:06
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.

fix: polish slash command framework - permissions, multi-team, cancel, list, dupe prevention

1 participant