package
0.0.0-20241227120803-7779d3b45fce
Repository: https://github.com/isometry/gh-promotion-app.git
Documentation: pkg.go.dev

# Functions

ExtractRefFromFullRef removes the "refs/heads/" prefix from a full Git reference string and returns the shortened name.
NewNoopLogger creates and returns a no-operation logger that discards all log output.
NormaliseFullRef returns a fully qualified Git reference string by prefixing "refs/heads/" to the normalized input reference.
NormaliseFullRefPtr returns a normalized full Git reference as a string pointer from the given string or string pointer.
NormaliseRef removes the "refs/heads/" prefix from a Git reference string, handling both string and *string input types.
NormaliseRefPtr is a helper function that normalises a Git reference and returns a pointer to the resulting string.
Ptr returns a pointer to the value passed as an argument.
RespondHTTP writes the response to the http.ResponseWriter.
String returns the dereferenced value of the input pointer if it's not nil, otherwise, it returns an empty string.
Truncate shortens the given string to the specified length, appending "..." if truncation occurs.