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

chore: Refactor statistics file handling and improve logging #121

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

JackPlowman
Copy link
Owner

@JackPlowman JackPlowman commented Oct 5, 2024

Pull Request

Description

This change introduces a constant DEFAULT_FILE_LOCATION in the statistics.py file to store the path for the repository statistics JSON file. The create_statistics() function now uses this constant when saving the statistics, improving code maintainability.

Additionally, a log message has been added to confirm when the statistics file has been saved successfully.

In the run.sh script, an echo statement has been included to provide feedback when the statistics file is copied to the GitHub workspace directory during CI execution.

These modifications enhance code readability, maintainability, and provide better logging for the statistics generation and file handling processes.

fixes #122

@github-actions github-actions bot added python Pull requests that update Python code analyser Pull requests that update analyser code shell Pull requests that update Shell code labels Oct 5, 2024
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JackPlowman and the rest of your teammates on Graphite Graphite

@JackPlowman JackPlowman changed the title Add file saved debug messages chore: Refactor statistics file handling and improve logging Oct 5, 2024
@JackPlowman JackPlowman changed the title chore: Refactor statistics file handling and improve logging feat: Add File Saved Logs Oct 5, 2024
@JackPlowman JackPlowman marked this pull request as ready for review October 5, 2024 10:58
@JackPlowman JackPlowman changed the title feat: Add File Saved Logs chore: Refactor statistics file handling and improve logging Oct 5, 2024
Copy link

sonarcloud bot commented Oct 5, 2024

@JackPlowman JackPlowman merged commit c4a3d9e into main Oct 5, 2024
44 of 45 checks passed
Copy link
Owner Author

Merge activity

@JackPlowman JackPlowman deleted the 10-05-add_file_saved_debug_messages branch October 5, 2024 11:00
JackPlowman added a commit that referenced this pull request Oct 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.1.0](v1.0.1...v1.1.0)
(2024-10-06)


### 🚀 Features

* Build and Push GitHub Package
([#131](#131))
([dbbc4df](dbbc4df)),
closes
[#132](#132)


### 🧰 Maintenance

* Add .dockerignore file
([#108](#108))
([4f96c7d](4f96c7d)),
closes
[#114](#114)
* Add environment variable check script
([#126](#126))
([2596b6f](2596b6f)),
closes
[#125](#125)
* Create reusable setup-dependencies action
([#123](#123))
([3ff9743](3ff9743)),
closes
[#124](#124)
* Group GitHub Actions dependencies in Dependabot config
([#112](#112))
([2cd5914](2cd5914)),
closes
[#117](#117)
* Refactor statistics file handling and improve logging
([#121](#121))
([c4a3d9e](c4a3d9e)),
closes
[#122](#122)
* Reorganize and expand Justfile commands
([#127](#127))
([ad0aa60](ad0aa60)),
closes
[#128](#128)
* Standardise environment variable names
([#129](#129))
([203c593](203c593)),
closes
[#130](#130)
* Update GitHub Actions dependencies
([#113](#113))
([7a51401](7a51401)),
closes
[#118](#118)
* Update workflows and remove action preview
([#109](#109))
([db4bf42](db4bf42)),
closes
[#115](#115)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyser Pull requests that update analyser code python Pull requests that update Python code shell Pull requests that update Shell code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add file saved messages
1 participant