🏠 Home 

GitHub CommitMessage Html View

This script converts commit messages on GitHub into HTML views for clearer visibility of commit details. It automatically transforms commit message lists, commit headers, and the latest commit information into HTML format, providing enhanced visual appeal and user experience.


Install this script?

Visit the author's site for support, ask a question, post a review, or report the script.
Author
人民的勤务员
Daily installs
0
Total installs
57
Ratings
0 0 0
Version
1.0.0.19
Created
2024-08-30
Updated
2024-10-18
Size
38.3 KB
License
MIT
Applies to
简体中文 | English
👆️accessGitHub Readme file on for a better experience。
UserScripts
GitHubView the script for the orderlyGithub:@ChinaGodMan
GreasyForkView the script for the orderly
View the script of the orderly on the current page
GreasyFork Total Installs Total Daily Installs Scripts Count
Good Ratings Ok Ratings Bad Ratings CodeQuality Stars Forks Issue
If the script helps you,You can light up the stars for encouragement
Telegram TikTok Instagram Gmail

GitHub Submit information display web view

「 This script will GitHub The submission information on HTML view,to see submission details more clearly。It will automatically submit the information list、The commit header and latest commit information are converted to HTML Format,Provide better visual effects and user experience。 」

Views

Download:Github | ⭐Greasy Fork

GitHub CommitMessage Html View

Description

GitHub CommitMessage Html View is a user script designed to convert commit messages on GitHub into HTML views, providing clearer commit details. This script automatically transforms commit message lists, commit headers, and the latest commit information into HTML format to enhance visual appeal and user experience, and can be used in conjunction with Git.

Features

Using PowerShell to Upload to a Remote Repository

Clickqinwuyuan.ps1 to download the PowerShell script.

 param (
[string]$qinwuyuan_messageFilePath
)
$qinwuyuan_scriptPath = $PSScriptRoot
$qinwuyuan_rootDrive1 = [System.IO.Path]::GetPathRoot($qinwuyuan_scriptPath).TrimEnd('\')
if (-not $qinwuyuan_messageFilePath) {
$qinwuyuan_messageFilePath = "$qinwuyuan_rootDrive1\path\to\change\commit.txt"
}
$qinwuyuan_oldCommitFilePath = "$qinwuyuan_scriptPath\oldcommit.txt"
if (-not (Test-Path $qinwuyuan_messageFilePath)) {
exit 1
}
if (-not (Test-Path .git)) {
exit 1
}
$qinwuyuan_newCommitMessage = Get-Content $qinwuyuan_messageFilePath -Raw
$qinwuyuan_oldCommitMessage = if (Test-Path $qinwuyuan_oldCommitFilePath) {
Get-Content $qinwuyuan_oldCommitFilePath -Raw
} else {
""
}
if ($qinwuyuan_newCommitMessage -eq $qinwuyuan_oldCommitMessage) {
$qinwuyuan_currentDateTime = Get-Date -Format "yyyy/M/d HH:mm:ss"
$qinwuyuan_commitMessage = @"
https://avatars.githubusercontent.com/u/96548841?v=4&size=32">
https://github.com/ChinaGodMan">
peoplecivilofdiligentservicememberGithub:ChinaGodMan
(UTC+8) $qinwuyuan_currentDateTime 
"@
} else {
$qinwuyuan_currentDateTime = Get-Date -Format "yyyy/M/d HH:mm:ss"
$qinwuyuan_commitMessage = $qinwuyuan_newCommitMessage -replace '\$qinwuyuan_currentDateTime', $qinwuyuan_currentDateTime
}
$qinwuyuan_currentBranch = git rev-parse --abbrev-ref HEAD
if ($LASTEXITCODE -ne 0) {
exit 1
}
git add .
git commit -m $qinwuyuan_commitMessage
if ($LASTEXITCODE -ne 0) {
exit 1
}
git push origin $qinwuyuan_currentBranch --force
if ($LASTEXITCODE -ne 0) {
exit 1
}
Copy-Item -Path $qinwuyuan_messageFilePath -Destination $qinwuyuan_oldCommitFilePath -Force

Support

License

This script is licensed under the MIT License.

After: 1.png Before: 2.png

🔍You may be looking forGitHubRelated scripts

Help

Recommended browsers and script managers:

If you need to know more about how to install userscripts,click meView graphic teaching!

View all publish scripts

🔍You may be looking forChatGPTRelated scripts

🔍You may be looking for web related scripts

🔍You may be looking forGitHubRelated scripts

🔍you may be looking forGoogleRelated scripts

🔍You may be looking forGreasyForkRelated scripts

🔍You might be looking for adult scripts

🔍You may be looking for automatic translation

🔍You might be looking for social media scripts

More user scripts /back to top↑