- Refactor the way the email summary is constructed
- Ensure that the summary is set correctly based on the presence of stats
- Update the log message to reflect the changes in summary content
This change improves the clarity of the email notifications by
ensuring that the summary is generated correctly based on the
availability of synchronization statistics. It also enhances the
readability of the logs by updating the labels for the log
sections.
- Refactor the message construction in `send_feishu_notification` to use `jq` for better readability and maintainability.
- Update the email and feishu notification content preparation in `main.sh` to use consistent variable names for subject and content.
These changes enhance the clarity of the notification messages and ensure that the code is easier to modify in the future. The use of `jq` also reduces the risk of syntax errors in JSON formatting.
- Adjust formatting of the synchronization report output
- Change indentation and bullet points for better readability
- Ensure consistent presentation of start time, end time, and status
These changes improve the clarity and presentation of the synchronization
report, making it easier for users to read and understand the
synchronization statistics and details.
- Include logging for successful repositories in the output
- Enhance user feedback by listing both successful and failed repositories
This change improves the visibility of the repository mirroring process by
providing a clear distinction between successful and failed operations. Users
can now easily identify which repositories were successfully processed, thus
enhancing the overall usability of the script.
- Initialize statistics logging in the mirror script
- Update logging to include total, processed, skipped, success, and failed repositories
- Enhance summary report with detailed statistics after synchronization
This commit introduces a comprehensive logging mechanism for the
repository synchronization process. It tracks various metrics such as
total repositories, processed repositories, and their success or failure
status. This enhancement provides better visibility into the
synchronization process and helps in debugging and monitoring.
- Remove unnecessary 'true ||' condition from the
command that calls mirror.sh.
- This change clarifies the intent of the command and
ensures that the script executes as expected.
- Introduce email notification configuration options in the README
- Create a new config.sh file for managing environment variables
- Implement mail.sh for sending email notifications
- Add logging functionality to main.sh for tracking synchronization processes
These changes enhance the functionality of the script by allowing users to receive email notifications about the synchronization status and maintain logs of the operations performed. The new configuration options provide flexibility in managing email settings and improve the overall usability of the tool.