Modernize Go, replace pkg/errors, add GitHub Actions#99
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
github.com/pkg/errorswith stdlibfmt.Errorfwith%wwrapping across 6 source files (card.go, client.go, webhook.go, trello.go, list-duration.go, member-duration.go)io/ioutilwithioandosequivalents across 5 filesgolang.org/x/timeto v0.15.0go mod tidyto clean up go.mod/go.sumGitHub Actions CI (
.github/workflows/ci.yml)GitHub Actions Release (
.github/workflows/release.yml)v*.*.*)Project artifacts
CHANGELOG.mdfollowing Keep a Changelog formatcodecov.ymlwith project/patch coverage targets.travis.yml(Travis CI is no longer active)README.mdbadges (GitHub Actions CI, Codecov)Testing
go build ./...passesgo vet ./...passesgofmt -l .clean (all files formatted)go test -v -race ./...passes (85 tests, 74.7% coverage)