Thanks to visit codestin.com
Credit goes to github.com

Skip to content

💚 Fix badges in README and main page#3979

Merged
tiangolo merged 8 commits into
fastapi:masterfrom
ghandic:fix/readme-badge
Oct 3, 2021
Merged

💚 Fix badges in README and main page#3979
tiangolo merged 8 commits into
fastapi:masterfrom
ghandic:fix/readme-badge

Conversation

@ghandic

@ghandic ghandic commented Oct 3, 2021

Copy link
Copy Markdown
Contributor

Fixing workflow badge to point to the master branch and not forks with PR. Looking into how to do the same for codecov

@tiangolo tiangolo changed the title Fix/readme badge 💚 Fix badges in README and main page Oct 3, 2021
@github-actions

github-actions Bot commented Oct 3, 2021

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 6a7b9f4 at: https://6159f015663db637a7488e2c--fastapi.netlify.app

@tiangolo

tiangolo commented Oct 3, 2021

Copy link
Copy Markdown
Member

Awesome, thank you @ghandic! 🚀

I just updated the main page as well, the README is generated from it, so now tests should pass. Thanks for your contribution! 🍰

I also updated the Coverage upload, it's needed in PRs too to be able to measure their coverage changes.

@github-actions

github-actions Bot commented Oct 3, 2021

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 7e3ccf1 at: https://6159f1281218000f3b70ed2c--fastapi.netlify.app

@codecov

codecov Bot commented Oct 3, 2021

Copy link
Copy Markdown

Codecov Report

Merging #3979 (c8008e6) into master (1b6350a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #3979   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          410       410           
  Lines        10281     10281           
=========================================
  Hits         10281     10281           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b6350a...c8008e6. Read the comment docs.

@github-actions

github-actions Bot commented Oct 3, 2021

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit c8008e6 at: https://6159f203bb69fce44748d893--fastapi.netlify.app

@tiangolo tiangolo merged commit 099c478 into fastapi:master Oct 3, 2021
@ghandic

ghandic commented Oct 3, 2021

Copy link
Copy Markdown
Contributor Author

You'll be measuring the PR coverage and displaying that on the main page though. I did have a look to see if there was some filtering that could be done for that badge but couldn't see anything at a first pass.

I'll continue to look 👍🏻

@ghandic

ghandic commented Oct 3, 2021

Copy link
Copy Markdown
Contributor Author

We could add flags conditional of whether it is a PR or a push and then filter by that flag for the badge. I'll make another PR today to fix, that way you'll keep the codecov run for PR to check but also have the coverage % accurate on the readme

https://community.codecov.com/t/badges-for-flags/270/5

@ghandic

ghandic commented Oct 3, 2021

Copy link
Copy Markdown
Contributor Author

@tiangolo see PR - #3982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants