diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8027f675..30ca4423 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @michaeljguarino @DavidSpek @zreigz +* @michaeljguarino @zreigz @floreks @maciaszczykm diff --git a/Dockerfile b/Dockerfile index d5848522..063eeba3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:22.10 as user # Create a nonroot user for final image RUN useradd -u 10001 nonroot -FROM golang:1.20-alpine3.17 AS builder +FROM golang:1.22-alpine3.19 AS builder WORKDIR /workspace diff --git a/pkg/pr/updates.go b/pkg/pr/updates.go index c1963af2..3702d817 100644 --- a/pkg/pr/updates.go +++ b/pkg/pr/updates.go @@ -7,6 +7,10 @@ import ( ) func applyUpdates(updates *UpdateSpec, ctx map[string]interface{}) error { + if updates == nil { + return nil + } + replacement, err := templateReplacement([]byte(updates.ReplaceTemplate), ctx) if err != nil { return err