Commit Graph

8 Commits

Author SHA1 Message Date
b3e176fce9 fix: improve email notification summary generation
- 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.
2025-01-05 01:52:45 +08:00
cce33ee405 feat: improve feishu notification formatting
- 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.
2025-01-04 18:57:33 +08:00
千石
094fb11580
Update main.sh 2025-01-04 11:14:58 +08:00
c1e480004a style: format output for synchronization report
- 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.
2025-01-03 17:56:20 +08:00
c5bb5ced10 feat: add success repository logging
- 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.
2025-01-03 17:32:21 +08:00
ca6a80da97 feat: add synchronization statistics logging
- 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.
2025-01-03 17:26:32 +08:00
5821fefcae fix: simplify script execution command
- 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.
2025-01-03 17:10:27 +08:00
534a9ab0e4 feat: add email notification and logging features
- 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.
2025-01-03 17:03:01 +08:00