From 9c2670687c4c412616d16ca1f1a32eed49eb0bc4 Mon Sep 17 00:00:00 2001 From: Mateusz Urbanek Date: Fri, 24 Nov 2023 09:41:45 +0100 Subject: [PATCH] feat: replaced labels with new syntax Signed-off-by: Mateusz Urbanek --- .github/labels.yml | 27 +++++++++------------------ .github/workflows/00-labels-sync.yaml | 4 ++-- Dockerfile | 1 - pkg/endpoint/endpoint_test.go | 2 +- pkg/testutils/must_test.go | 2 +- pkg/testutils/testcontext_test.go | 2 +- 6 files changed, 14 insertions(+), 24 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 26c17d4..df63c53 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,37 +1,28 @@ -good first issue: - name: good first issue +- name: good first issue color: 7057ff description: Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. -help wanted: - name: help wanted +- name: help wanted color: 006b75 description: Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. -area/api: - name: area/api +- name: area/api color: 0052cc description: Indicates an issue on api area. -area/dependency: - name: area/dependency +- name: area/dependency color: 0052cc description: Issues or PRs related to dependency changes -area/example: - name: area/example +- name: area/example color: 0052cc -kind/bug: - name: kind/bug +- name: kind/bug color: e11d21 description: Categorizes issue or PR as related to a bug. -kind/documentation: - name: kind/documentation +- name: kind/documentation color: c7def8 description: Categorizes issue or PR as related to documentation. -kind/feature: - name: kind/feature +- name: kind/feature color: c7def8 description: Categorizes issue or PR as related to a new feature. -kind/support: - name: kind/support +- name: kind/support color: d455d0 description: Categorizes issue or PR as a support question. diff --git a/.github/workflows/00-labels-sync.yaml b/.github/workflows/00-labels-sync.yaml index 9f93901..559d19d 100644 --- a/.github/workflows/00-labels-sync.yaml +++ b/.github/workflows/00-labels-sync.yaml @@ -11,7 +11,7 @@ on: - .github/labels.yml env: - OWNER: shanduur + OWNER: linode REPO: ${{ github.event.repository.name }} permissions: write-all @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.20' - - run: go install github.com/shanduur/labeler/cmd/labeler@main + - run: go install github.com/shanduur/labeler/cmd/labeler@v1.0.0 - run: labeler upload --owner ${{ env.OWNER }} --repo ${{ env.REPO }} ./.github/labels.yml env: LABELER_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 84d09e3..a8bb866 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,6 @@ RUN go mod download # Copy the go source. COPY cmd/ cmd/ -COPY internal/ internal/ COPY pkg/ pkg/ COPY Makefile Makefile diff --git a/pkg/endpoint/endpoint_test.go b/pkg/endpoint/endpoint_test.go index d3a5399..be7eca5 100644 --- a/pkg/endpoint/endpoint_test.go +++ b/pkg/endpoint/endpoint_test.go @@ -20,7 +20,7 @@ import ( "net/url" "testing" - "github.com/linode/linode-cosi-driver/internal/testutils" + "github.com/linode/linode-cosi-driver/pkg/testutils" ) func TestEndpointListener(t *testing.T) { diff --git a/pkg/testutils/must_test.go b/pkg/testutils/must_test.go index 83f8347..79e7fbe 100644 --- a/pkg/testutils/must_test.go +++ b/pkg/testutils/must_test.go @@ -18,7 +18,7 @@ import ( "errors" "testing" - "github.com/linode/linode-cosi-driver/internal/testutils" + "github.com/linode/linode-cosi-driver/pkg/testutils" ) func TestDo(t *testing.T) { diff --git a/pkg/testutils/testcontext_test.go b/pkg/testutils/testcontext_test.go index 26535a8..bb1af4a 100644 --- a/pkg/testutils/testcontext_test.go +++ b/pkg/testutils/testcontext_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - "github.com/linode/linode-cosi-driver/internal/testutils" + "github.com/linode/linode-cosi-driver/pkg/testutils" ) var DefaultTimeout = time.Second * 30