def toDictWithShieldsKeys(count, color, logoName, style) :
    """Creates a Python dictionary with all of the necessary
    keys for a Shields endpoint.

    Keyword arguments:
    count - The count of the number of repositories using an action.
    color - The color for the data portion of the badge.
    logoName - A named logo or None for no logo in badge.
    style - The name of the shields style to use or None for Shields default.
    """
    d = {
        "schemaVersion" : 1,
        "label" : "used by",
        "message" : count,
        "color" : color
        }
    if logoName != None :
        d["namedLogo"] = logoName
        # The GitHub Actions logo in its default color
        # is difficult to see on top of the grey left side,
        # so if that is the logo set its color to white. 
        if logoName == "githubactions" :
            d["logoColor"] = "#fff"
    if style != None :
        d["style"] = style
    return d