### Body

Same as https://github.com/apache/airflow/issues/33876 but for `publish-docs` command.

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
)
    current_release_version = provider_yaml_dict["versions"][0]
    prs = []
    with open(changelog_path) as changelog_file:
        changelog_lines = changelog_file.readlines()
        extract_prs = False
        skip_line = False
        for line in changelog_lines:
            if skip_line:
                
                skip_line = False
            elif line.strip() == current_release_version:
                extract_prs = True
                skip_line = True
            elif extract_prs:
                if len(line) > 1 and all(c == "." for c in line.strip()):
                    
                    break
                if line.startswith(".. Below changes are excluded from the changelog"):
                    
                    break
                match_result = pr_matcher.match(line.strip())
                if match_result:
                    prs.append(int(match_result.group(1)))
    return prs
@release_management.command(
    name="generate-issue-content-providers", help="Generates content for issue to test the release."
)
@click.option(
    "--github-token",