public function resolveRefType($reference): ?array
    {
        if ($tag = $this->parseRefAsTag($reference)) {
            return ['tag', $tag];
        }

        if ($pull = $this->parseRefAsPull($reference)) {
            return ['pr', $pull];
        }

        if ($commit = $this->parseRefAsCommit($reference)) {
            return ['commit', $commit];
        }

        return ['branch', $reference];
    }