Skip to content

Modernize Go, replace pkg/errors, add GitHub Actions#99

Merged
adlio merged 6 commits into
mainfrom
modernize-go-add-github-actions
May 3, 2026
Merged

Modernize Go, replace pkg/errors, add GitHub Actions#99
adlio merged 6 commits into
mainfrom
modernize-go-add-github-actions

Conversation

@kiro-agent

@kiro-agent kiro-agent Bot commented May 3, 2026

Copy link
Copy Markdown

This pull request was generated by @kiro-agent 👻

Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent


Summary

Modernizes the codebase and adds CI/CD automation modeled after adlio/mixtape's GitHub Actions.

Changes

Dependency migration

  • Updated minimum Go version from 1.13 to 1.21
  • Replaced github.com/pkg/errors with stdlib fmt.Errorf with %w wrapping across 6 source files (card.go, client.go, webhook.go, trello.go, list-duration.go, member-duration.go)
  • Replaced deprecated io/ioutil with io and os equivalents across 5 files
  • Upgraded golang.org/x/time to v0.15.0
  • Ran go mod tidy to clean up go.mod/go.sum

GitHub Actions CI (.github/workflows/ci.yml)

  • 4 parallel jobs: Format check (gofmt), Vet (go vet), Build, Test + Coverage
  • Triggered on push to main and pull requests to main
  • Codecov integration for coverage reporting

GitHub Actions Release (.github/workflows/release.yml)

  • Triggered on version tags (v*.*.*)
  • Extracts release notes from CHANGELOG.md
  • Creates/updates GitHub Releases automatically

Project artifacts

  • Created CHANGELOG.md following Keep a Changelog format
  • Created codecov.yml with project/patch coverage targets
  • Deleted .travis.yml (Travis CI is no longer active)
  • Updated README.md badges (GitHub Actions CI, Codecov)

Testing

  • go build ./... passes
  • go vet ./... passes
  • gofmt -l . clean (all files formatted)
  • go test -v -race ./... passes (85 tests, 74.7% coverage)
  • Both YAML workflows validate correctly

kiro-agent and others added 6 commits May 3, 2026 03:59
…l, update go.mod to Go 1.21

Co-authored-by: Aaron Longwell <27492+adlio@users.noreply.github.com>
…fig, remove Travis CI

Co-authored-by: Aaron Longwell <27492+adlio@users.noreply.github.com>
…error format

- Remove %w wrapping of potentially-nil err in CreatorMemberID(); use a
  standalone error message since 'no creator found' is the actual error
  condition, not a wrapper around another error.
- Separate the response body from the wrapped error with a newline in
  the JSON decode error message in do(), making it easier to distinguish
  the body from the Go error.

Co-authored-by: Aaron Longwell <27492+adlio@users.noreply.github.com>
…reatorMemberID error preservation

- Run gofmt -w to normalize doc comment formatting across 7 files
  (trailing blank // lines before declarations, indentation)
- Add nil guard in CreatorMemberID() so GetActions() errors are
  wrapped and preserved in the final return instead of being discarded

Co-authored-by: Aaron Longwell <27492+adlio@users.noreply.github.com>
- actions/checkout v4 -> v5
- actions/setup-go v5 -> v6
- codecov/codecov-action v4 -> v5
@adlio adlio merged commit 1a10fa0 into main May 3, 2026
4 checks passed
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.

2 participants