Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Remove unwanted AI coauthor trailers, generated-by comments, and attribution boi
## Install

```bash
go install github.com/Skeyelab/coauthor-cleaner/cmd/coauthor-cleaner@latest
go install github.com/ericdahl-dev/coauthor-cleaner/cmd/coauthor-cleaner@latest
```

Or build from source:
Expand Down Expand Up @@ -75,7 +75,7 @@ Use the reusable action from this repo:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: Skeyelab/coauthor-cleaner/action.yml@v0.1.0
- uses: ericdahl-dev/coauthor-cleaner/action.yml@v0.1.3
with:
mode: block # or warn
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
case "$ARCH" in x86_64) ARCH=amd64;; aarch64|arm64) ARCH=arm64;; esac
URL="https://github.com/Skeyelab/coauthor-cleaner/releases/download/${VERSION}/coauthor-cleaner_${VERSION#v}_${OS}_${ARCH}.tar.gz"
URL="https://github.com/ericdahl-dev/coauthor-cleaner/releases/download/${VERSION}/coauthor-cleaner_${VERSION#v}_${OS}_${ARCH}.tar.gz"
curl -sL "$URL" | tar xz
echo "$PWD" >> "$GITHUB_PATH"
else
Expand Down
2 changes: 1 addition & 1 deletion cmd/coauthor-cleaner/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/coauthor-cleaner/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/coauthor-cleaner/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"path/filepath"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/github"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/guide"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/github"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/guide"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/coauthor-cleaner/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/Skeyelab/coauthor-cleaner/internal/fix"
"github.com/ericdahl-dev/coauthor-cleaner/internal/fix"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/coauthor-cleaner/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"path/filepath"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
)

func loadConfig(g git.Runner) config.Config {
Expand Down
12 changes: 6 additions & 6 deletions cmd/coauthor-cleaner/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"
"os"

"github.com/Skeyelab/coauthor-cleaner/internal/clean"
"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/fix"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/clean"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/fix"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/coauthor-cleaner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"os"

"github.com/Skeyelab/coauthor-cleaner/internal/clean"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/clean"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/coauthor-cleaner/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"github.com/Skeyelab/coauthor-cleaner/internal/github"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/github"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/coauthor-cleaner/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/coauthor-cleaner/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"github.com/Skeyelab/coauthor-cleaner/internal/guide"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/guide"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/coauthor-cleaner/tui.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/Skeyelab/coauthor-cleaner/internal/tui"
"github.com/ericdahl-dev/coauthor-cleaner/internal/tui"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Skeyelab/coauthor-cleaner
module github.com/ericdahl-dev/coauthor-cleaner

go 1.22

Expand Down
6 changes: 3 additions & 3 deletions internal/clean/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/guide"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/guide"
)

type Options struct {
Expand Down
10 changes: 5 additions & 5 deletions internal/clean/clean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/Skeyelab/coauthor-cleaner/internal/testutil"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/testutil"
)

func TestApply_StagedUnpushedCommit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/detect/rules_config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package detect

import "github.com/Skeyelab/coauthor-cleaner/internal/config"
import "github.com/ericdahl-dev/coauthor-cleaner/internal/config"

func SelectRules(cfg config.Config, strict, aggressive bool) []Rule {
var rules []Rule
Expand Down
2 changes: 1 addition & 1 deletion internal/detect/rules_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package detect
import (
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
)

func TestSelectRules_RespectsProviders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/detect/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
)

type ScanOpts struct {
Expand Down
8 changes: 4 additions & 4 deletions internal/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"path/filepath"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/clean"
"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/clean"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
)

func setupRepo(t *testing.T) (string, git.Runner) {
Expand Down
10 changes: 5 additions & 5 deletions internal/fix/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"os"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/clean"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/guide"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/clean"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/guide"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
)

type Options struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/fix/fix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package fix
import (
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
)

func TestPartition_SkipsPushedCommit(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions internal/fix/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/Skeyelab/coauthor-cleaner/internal/scan"
"github.com/Skeyelab/coauthor-cleaner/internal/testutil"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/scan"
"github.com/ericdahl-dev/coauthor-cleaner/internal/testutil"
)

func initCommit(t *testing.T, dir string) {
Expand Down
2 changes: 1 addition & 1 deletion internal/git/amend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/testutil"
"github.com/ericdahl-dev/coauthor-cleaner/internal/testutil"
)

func TestStageFile_AndAmend(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/github/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/exec"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

type PR struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/github/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github
import (
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
)

func TestScanPR_Body(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/guide/guide.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
)

type CleanActions struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/guide/guide_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/Skeyelab/coauthor-cleaner/internal/git"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/git"
)

func TestNextSteps_AmendedPushedCommit(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/scan/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"path/filepath"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

var skipDirs = map[string]bool{
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/config"
"github.com/ericdahl-dev/coauthor-cleaner/internal/config"
)

func TestScanPath_File(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

func TestFormatText(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scan
import (
"encoding/json"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

type JSONFinding struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

func TestFormatJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

// FormatMarkdownComment renders findings as a GitHub PR comment.
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/markdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/Skeyelab/coauthor-cleaner/internal/detect"
"github.com/ericdahl-dev/coauthor-cleaner/internal/detect"
)

func TestFormatMarkdownComment(t *testing.T) {
Expand Down
Loading
Loading