Skip to content

Conversation

daniel-anya
Copy link
Contributor

@daniel-anya daniel-anya commented May 15, 2025

5764cba: Adds support for figuring out a Github host from the GITHUB_BASE_URL config, and using this value in generated coverage artifacts. The usecase here is that, when this action is used in the enterprise environment, coverage artifacts like html files and README docs point to github.com/... which is not what we'd want.

07a88e1: Adds support for saving coverage artifacts on PR merged to default branch events which is functionally equivalent to the currently supported path of saving coverage artifacts on commit pushed to default branch events.

78a7324: Adds support for generating Github Pages based coverage report links.

Tested all changes in a Github enterprise environment and they've been working fine for a while now.

Copy link

End-to-end public repo

Admin commands cheatsheet:

  • /e2e (in approved PR review body): Trigger end-to-end tests on external contributions
  • /invite (in comment): Invite the author & admins to the end-to-end private repo

Copy link

github-actions bot commented May 15, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  coverage_comment
  activity.py
  github.py
  main.py
  settings.py
  storage.py
  template.py
Project Total  

This report was generated by python-coverage-comment-action

Copy link
Member

@ewjoachim ewjoachim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a stellar contribution 🤩

I'm sorry it took so long to find the time to review it.
I think what it mainly needs is documentation in README. In particular:

  • That you can use the pull_request merged event
  • How to setup GH pages
  • Maybe add some details on how it works for GHE ?

@ewjoachim
Copy link
Member

…st merge to the default branch.

This is functionally equivalent to the currently supported pattern of pushing to the default branch.
Adds support for figuring out a github host from the `GITHUB_BASE_URL` config and using this value in generated coverage artifacts rather than hardcoding them to "github.com"
@ewjoachim ewjoachim force-pushed the additional-support-for-gh-enterprise branch from 45f2ca6 to 1e8ea13 Compare August 20, 2025 21:31
@ewjoachim
Copy link
Member

I'll be merging in #589

That said, thanks a lot !

@ewjoachim ewjoachim closed this Aug 20, 2025
@ewjoachim
Copy link
Member

That was the 500th PR on this repo 🎉

And the associated released is the 42nd of the repo 🎉
https://github.com/py-cov-action/python-coverage-comment-action/releases/tag/v3.36

Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants