MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetNillablePrNumber

Method SetNillablePrNumber

ent/gitcommit_create.go:121–126  ·  view source on GitHub ↗

SetNillablePrNumber sets the "pr_number" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

119
120// SetNillablePrNumber sets the "pr_number" field if the given value is not nil.
121func (gcc *GitCommitCreate) SetNillablePrNumber(s *string) *GitCommitCreate {
122 if s != nil {
123 gcc.SetPrNumber(*s)
124 }
125 return gcc
126}
127
128// SetID sets the "id" field.
129func (gcc *GitCommitCreate) SetID(u uuid.UUID) *GitCommitCreate {

Callers

nothing calls this directly

Calls 1

SetPrNumberMethod · 0.95

Tested by

no test coverage detected