Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 12, 2025

This PR enhances the dev ps (push) and dev mergeto commands to display completion time and commit hash ID after successful operations, as requested in the issue.

Changes Made

Enhanced dev ps command

After a successful push operation, the command now displays:

Push success
Completion time: 2024/08/12 09:54:10
Commit hash: 9114b43f8a2d1c5e7b9a3d2f1e8c6b4a9d3f2e1c

Enhanced dev mergeto command

After a successful merge operation, the command now displays:

1. Auto switch to target branch: master
2. Successfully pulled master
3. Successfully merged feature-branch into master
Push success
Completion time: 2024/08/12 09:54:10
Commit hash: 9114b43f8a2d1c5e7b9a3d2f1e8c6b4a9d3f2e1c
4. Switch back to the original branch: feature-branch
Merge operation completed
Completion time: 2024/08/12 09:54:10
Commit hash: 9114b43f8a2d1c5e7b9a3d2f1e8c6b4a9d3f2e1c

Implementation Details

  • Uses existing time() utility function for consistent date/time formatting in YYYY/MM/DD HH:MM:SS format
  • Uses existing getCurrentGitInfo() method to retrieve the latest commit hash after operations
  • All changes are non-breaking additions that preserve existing functionality
  • Added minimal code (13 lines total) without removing any existing features

The implementation provides users with better visibility into when operations completed and which commit was involved, improving the development workflow and debugging capabilities.

Fixes #53.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Aug 12, 2025
Copy link
Contributor Author

Copilot AI commented Aug 12, 2025

@echosoar 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

…mands

Co-authored-by: echosoar <14832743+echosoar@users.noreply.github.com>
Copilot AI changed the title [WIP] dev ps、 merge to 等显示时间和 commit hashid Add completion time and commit hash display to dev ps and mergeto commands Aug 12, 2025
Copilot AI requested a review from echosoar August 12, 2025 09:56
Copilot finished work on behalf of echosoar August 12, 2025 09:56
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.

dev ps、 merge to 等显示时间和 commit hashid

2 participants