From 93ecd147655d3fd9df7aa1e1151e9994dbbf5d22 Mon Sep 17 00:00:00 2001 From: BakerNet Date: Tue, 4 Mar 2025 14:59:51 -0800 Subject: [PATCH 1/2] v0.1 action.yml --- .github/workflows/publish.yml | 2 +- action.yml | 3 +-- pkg/codeowners/codeowners_test.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e421fbe..bdcdc5f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: - name: 'Build & Publish' uses: elgohr/Publish-Docker-Github-Action@eb53b3ec07136a6ebaed78d8135806da64f7c7e2 # v5 with: - name: multimediallc/mm-codeowners + name: multimediallc/codeowners-plus username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} registry: ghcr.io diff --git a/action.yml b/action.yml index bad4592..7637ac7 100644 --- a/action.yml +++ b/action.yml @@ -19,5 +19,4 @@ inputs: runs: using: 'docker' - # image: 'docker://ghcr.io/multimediallc/mm-codeowners:v0.1.0' # uncomment for v0.1 release - image: 'Dockerfile' + image: 'docker://ghcr.io/multimediallc/codeowners-plus:v0.1.0' diff --git a/pkg/codeowners/codeowners_test.go b/pkg/codeowners/codeowners_test.go index c81c0c4..845b32a 100644 --- a/pkg/codeowners/codeowners_test.go +++ b/pkg/codeowners/codeowners_test.go @@ -119,7 +119,7 @@ func TestGetOwnersFail(t *testing.T) { rgMan := NewReviewerGroupMemo() tree := initOwnerTreeNode("../../test_project", "../../test_project", rgMan, nil, io.Discard) testMap := tree.BuildFromFiles(files, rgMan) - files = append(files, "non_existant_file") + files = append(files, "non_existent_file") _, err := testMap.getOwners(files) if err == nil { t.Errorf("Expected error getting owners: %v", err) From c3decd8fc812858b9cbcdf45a4d31cc5462f7111 Mon Sep 17 00:00:00 2001 From: BakerNet Date: Tue, 4 Mar 2025 16:46:17 -0800 Subject: [PATCH 2/2] main use latest --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7637ac7..3e8da32 100644 --- a/action.yml +++ b/action.yml @@ -19,4 +19,4 @@ inputs: runs: using: 'docker' - image: 'docker://ghcr.io/multimediallc/codeowners-plus:v0.1.0' + image: 'docker://ghcr.io/multimediallc/codeowners-plus:latest'