MCPcopy Create free account
hub / github.com/cli/cli / shouldAddToMergeQueue

Method shouldAddToMergeQueue

pkg/cmd/pr/merge/merge.go:550–552  ·  view source on GitHub ↗

Add the Pull Request to a merge queue Admins can bypass the queue and merge directly

()

Source from the content-addressed store, hash-verified

548// Add the Pull Request to a merge queue
549// Admins can bypass the queue and merge directly
550func (m *mergeContext) shouldAddToMergeQueue() bool {
551 return m.mergeQueueRequired && !m.opts.UseAdmin
552}
553
554func (m *mergeContext) warnf(format string, args ...any) error {
555 _, err := fmt.Fprintf(m.opts.IO.ErrOut, format, args...)

Callers 1

mergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected