def generate_new_rule(child_id, parent_tag, parent_id, priority, maxdepth,
                      pkg_filter, intransitive, noconfig):
    """
    Return a full inheritance rule to add for this child tag.

    :param int child_id: Koji tag id
    :param str parent_tag: Koji tag name
    :param int parent_id: Koji tag id
    :param int priority: Priority of this parent for this child
    :param int maxdepth: Max depth of the inheritance
    :param str pkg_filter: Regular expression string of package names to include
    :param bool intransitive: Don't allow this inheritance link to be inherited
    :param bool noconfig: Prevent tag options ("extra") from being inherited
    """
    return {
        'child_id': child_id,
        'intransitive': intransitive,
        'maxdepth': maxdepth,
        'name': parent_tag,
        'noconfig': noconfig,
        'parent_id': parent_id,
        'pkg_filter': pkg_filter,
        'priority': priority}