From 3f693b4f1d42d343516108525019547d16fbb8e9 Mon Sep 17 00:00:00 2001 From: SnskArora Date: Sat, 22 Mar 2025 19:34:47 +0530 Subject: [PATCH] revert testing changes --- .github/workflows/ci.yaml | 24 ++---------------------- Dockerfile | 2 +- Makefile | 3 +-- action.yaml | 2 +- approval.go | 3 --- go.mod | 2 +- 6 files changed, 6 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 97d8c81..12b334b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,6 @@ on: push: branches: - main - - '*' paths-ignore: - '**/*.md' pull_request: @@ -27,31 +26,12 @@ jobs: - name: Refresh module hashsums run: make tidy - - - name: Generate token - id: generate_token - uses: tibdex/github-app-token@v1 - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: snskArora - password: ${{ secrets.grained_auth }} - - name: Build - run: make build + run: | + make build env: VERSION: latest - # - name: Push - # run: make push - # env: - # VERSION: latest - - name: Test run: make test - name: Lint diff --git a/Dockerfile b/Dockerfile index 786dca6..da0f22e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN go mod tidy RUN CGO_ENABLED=0 go build -o app . FROM alpine:3.14 -LABEL org.opencontainers.image.source https://github.com/snskArora/manual-approval +LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval RUN apk update && apk add ca-certificates COPY --from=builder /var/app/app /var/app/app CMD ["/var/app/app"] diff --git a/Makefile b/Makefile index ca7c724..54f20b9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -IMAGE_REPO=ghcr.io/snskarora/manual-approval +IMAGE_REPO=ghcr.io/trstringer/manual-approval TARGET_PLATFORM=linux/amd64 .PHONY: tidy @@ -12,7 +12,6 @@ build: exit 1; \ fi docker build --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$$VERSION . - docker push $(IMAGE_REPO):$(VERSION) .PHONY: push push: diff --git a/action.yaml b/action.yaml index ecab0f3..3a4d5ac 100644 --- a/action.yaml +++ b/action.yaml @@ -50,4 +50,4 @@ outputs: description: The status of the approval ("approved" or "denied") runs: using: docker - image: docker://ghcr.io/snskarora/manual-approval:latest + image: docker://ghcr.io/trstringer/manual-approval:latest diff --git a/approval.go b/approval.go index 6172748..d476fdf 100644 --- a/approval.go +++ b/approval.go @@ -85,9 +85,6 @@ func (a *approvalEnvironment) createApprovalIssue(ctx context.Context) error { formatAcceptedWords(deniedWords), ) - // if a.issueBody != "" { - // issueBody = fmt.Sprintf(">%s\n>\n%s", a.issueBody, issueBody) - // } issueBody = fmt.Sprintf(">[!NOTE]\n%s", issueBody) var err error diff --git a/go.mod b/go.mod index 9e96142..413e6d2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/snskArora/manual-approval +module github.com/trstringer/manual-approval go 1.17