Skip to content

Commit

Permalink
feat: update len on pullrequests
Browse files Browse the repository at this point in the history
  • Loading branch information
krzko committed Oct 19, 2023
1 parent 28e2ca8 commit a09296e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/githubactionseventreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func createResourceAttributes(resource pcommon.Resource, event interface{}, conf
attrs.PutStr("scm.git.branch", e.WorkflowRun.HeadBranch)
attrs.PutStr("scm.git.sha", e.WorkflowRun.HeadSha)

if e.WorkflowRun.PullRequests != nil {
if len(e.WorkflowRun.PullRequests) > 0 {
var prUrls []string
for _, pr := range e.WorkflowRun.PullRequests {
prUrls = append(prUrls, pr.URL)
Expand Down

0 comments on commit a09296e

Please sign in to comment.