Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add comment posting functionality by coverage action #122

Closed

Conversation

Limbou
Copy link

@Limbou Limbou commented Mar 18, 2022

Description

Add comment posting functionality for coverage action

You can see example bot comments here: https://github.com/Limbou/todo_app/pull/13

Closes #101

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@Limbou Limbou force-pushed the feat/add-coverage-pr-comment branch from 3ec8dc1 to ce75489 Compare March 18, 2022 12:42
@Limbou Limbou force-pushed the feat/add-coverage-pr-comment branch from 8763ddf to 85f6943 Compare March 20, 2022 21:59
Comment on lines +120 to +123
const coverageMet = linesMissingCoverageByFile.length === 0;
const coverageStatus = coverageMet
? `✅ Minimum coverage met`
: `❌ Minimum coverage treshold not met!`;

Choose a reason for hiding this comment

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

question: would this only be the case if the minimum coverage is 100? It seems like passing in isValidBuild into this function would be a safer way of setting this status

@JCQuintas
Copy link

@Limbou any plans on picking this up again? I would really like this to be merged :)

@alestiago
Copy link
Contributor

I'm closing due to inactivity, feel free to re-open 🙌

@alestiago alestiago closed this Sep 19, 2023
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.

Add Comments to PRs with Coverage Details
5 participants