Skip to content

Commit

Permalink
Fix issue w/ solo create pr automations (#494)
Browse files Browse the repository at this point in the history
* Fix issue w/ solo create pr automations

This currently segfaults on a nil-pointer deref.  Fix here.

* fix dockerfile
  • Loading branch information
michaeljguarino authored Feb 22, 2024
1 parent 85dd5c3 commit 0f0e7d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @michaeljguarino @DavidSpek @zreigz
* @michaeljguarino @zreigz @floreks @maciaszczykm
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions pkg/pr/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f0e7d2

Please sign in to comment.