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

fix(other): display commited date instead of the pull request creation date #1417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Baraka24
Copy link
Member

@Baraka24 Baraka24 commented Jan 2, 2025

🍰 Pullrequest

Issues

Todo

  • Added functionality to fetch the commit date from the Git history using the commit hash.
  • The commit date is formatted into a more readable format and displayed along with other server information.

@Baraka24 Baraka24 requested a review from marclaporte January 2, 2025 03:05
@Baraka24 Baraka24 force-pushed the fix-server-info-commit_date branch from fe144a8 to 0df86ee Compare January 2, 2025 03:12
@Baraka24 Baraka24 changed the title fix(server-info): display commited date instead of the pull request creation date fix(other): display commited date instead of the pull request creation date Jan 2, 2025
@marclaporte marclaporte requested a review from kroky January 2, 2025 09:12
* @return string The commit date
*/
protected function getCommitDate($commit_hash) {
$command = 'git log -1 --format=%cd ' . escapeshellarg($commit_hash);
Copy link
Member

Choose a reason for hiding this comment

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

Cypht might not have a local git repo - there are other distribution channels than git pull... see Hm_Handler_process_server_info for more info on how it gets commit hash and tries to get the date from github API endpoint. I think you should change that class rather than add more code here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay noted.

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.

2 participants