File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -68,17 +68,25 @@ jobs:
68
68
const repoUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}`;
69
69
const branchUrl = `${repoUrl}/tree/${branchName}`;
70
70
const commitUrl = `${repoUrl}/commit/${commitHash}`;
71
+
72
+ // Get the current date
73
+ const lastUpdatedDate = (new Date()).toLocaleString('en-US', {
74
+ dateStyle: 'long',
75
+ timeStyle: 'long'
76
+ });
77
+
71
78
const commentBody = `
72
79
### Temporary Branch Update
73
80
74
81
The temporary branch has been updated with the latest changes. Below are the details:
75
82
76
83
- **Branch Name**: [${branchName}](${branchUrl})
77
84
- **Commit Hash**: [${commitHash}](${commitUrl})
85
+ - **Last Updated**: ${lastUpdatedDate}
78
86
- **Install Command**: \`npm i github:duckduckgo/content-scope-scripts#${commitHash}\`
79
87
80
88
Please use the above install command to update to the latest version.
81
- `;
89
+ `;
82
90
core.setOutput('comment_body', commentBody);
83
91
core.setOutput('pr_number', prNumber);
84
92
You can’t perform that action at this time.
0 commit comments