def METHOD_NAME(ctx, from_ref, to_ref, release_milestone):
    agent_release = Release.from_github(ctx, 'datadog-agent', release_milestone, from_ref=from_ref, to_ref=to_ref)
    integrations_release = Release.from_github(
        ctx, 'integrations-core', release_milestone, from_ref=from_ref, to_ref=to_ref
    )
    print('Release Branch:', agent_release.release_version)
    print('Release candidates:', len(agent_release.rc_tags))
    print('Number of Commits (datadog-agent):', len(agent_release.commits))
    print('Number of Commits (integrations-core):', len(integrations_release.commits))
    print('Release time in days:', agent_release.release_duration_days())