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

code.json: labor_hour value taking into account markdown files #196

Open
natalialuzuriaga opened this issue Oct 31, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working code.json

Comments

@natalialuzuriaga
Copy link
Collaborator

natalialuzuriaga commented Oct 31, 2024

Describe the bug
Overall, labor_hour value is pretty high because it is taking into account the markdown files. We would like to exclude this from the calculation.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new repository using repo-scaffolder. Do not create new files or add lines of code to the repo.
  2. Go to .github
  3. Run cookiecutter . --directory=codejson to generate code.json
  4. Answer prompts
  5. labor_hours result value should be ~2,000. This is not an accurate reflection of the amount of work/hours/effort put into the repository.

Expected behavior
We want the labor_hours result to exclude the documentation markdown files (README.md, MAINTAINERS.md, etc.) and other templates files. labor_hours should reflect the new files and lines of code that the project team has added to the repository.

@sachin-panayil
Copy link
Contributor

idea for this could be to run the labor_hour logic in a pre_gen file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code.json
Projects
None yet
Development

No branches or pull requests

2 participants