### Body

Our CI generates `--package-filter` list in selective checks in order to pass them to `build-docs` and `publish-docs` commands. However after implementing #33876 and #34085 we could switch both commands to use short package ids which we already have (almost - there should be a slight modification for `apache-airflow`, `apache-airflow-providers` and `helm-chart` most likely. This should also simplify some of the unit tests we have.



### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
pr_labels=(),
        default_branch="main",
    )
    assert_outputs_are_printed({"runs-on": runs_on}, str(stderr))
@pytest.mark.parametrize(
    "files, has_migrations",
    [
        pytest.param(
            ("airflow/test.py",),
            False,
            id="No migrations",
        ),
        pytest.param(
            ("airflow/migrations/test_sql", "aiflow/test.py"),
            True,
            id="With migrations",
        ),
    ],
)
def test_has_migrations(files: tuple[str, ...], has_migrations: bool):
    stderr = str(
        SelectiveChecks(
            files=files,
            commit_ref="HEAD",
            github_event=GithubEvents.PULL_REQUEST,
            default_branch="main",
        )
    )
    assert_outputs_are_printed({"has-migrations": str(has_migrations).lower()}, str(stderr))