Skip to content

Conversation

@cfabriziohivemq
Copy link
Collaborator

This strategy ensures data retention for more than 28 days. It involves:

  • A GitHub Action scheduled weekly to generate a metric.json file.
  • A Python application to convert the JSON into a SQLite database.
  • Metabase for data visualization.

Key changes

  • Scheduled Trigger: Adding a scheduled trigger, updating the action version, and implementing a step to commit and push changes.
  • Updated Action Version: Changed the uses field to reference a specific commit hash (5b9ef15ce66fc883afb3b6127f960e44d5233a50) for the ambilykk/copilot-metrics-retention action to ensure stability and reproducibility.
  • Commit and Push Step: Added a new step to configure Git, commit changes if the metrics.json file was updated, and push the changes back to the repository.

Copy link

@ymengesha ymengesha left a comment

Choose a reason for hiding this comment

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

Left some questions and suggestions!

@cfabriziohivemq cfabriziohivemq merged commit 6435242 into main Jul 3, 2025
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.

5 participants