Commit 8475aa0

Anton Medvedev <anton@medv.io>
2023-10-04 18:27:23
Release 1.0.4
1 parent 856368a
src/update-badges.ts
@@ -44,7 +44,10 @@ export async function updateBadges(octokit: Octokit, owner: string, repo: string
     const content = `<img src="${badge.image}" alt="${desc}" title="${desc}" width="128">\n` +
       `<strong>${desc}</strong>\n` +
       `<br><br>\n\n` +
-      badge.body
+      badge.body +
+      `\n\n\n` +
+      `Created by <a href="https://github.com/my-badges/my-badges">My Badges</a>`
+
     if (content === oldContent) {
       console.log(`No change in ${badgePath}`)
       continue
src/update-readme.ts
@@ -21,7 +21,7 @@ export async function updateReadme(octokit: Octokit, owner: string, repo: string
 
     content = content.slice(0, start) +
       '<!-- my-badges start -->\n' +
-      '<h4><a href="https://github.com/my-badges">My Badges</a></h4>\n\n' +
+      '<h4><a href="https://github.com/my-badges/my-badges">My Badges</a></h4>\n\n' +
       badgesHtml +
       '\n<!-- my-badges end -->\n' +
       content.slice(start)
package.json
@@ -1,6 +1,6 @@
 {
   "name": "update-my-badges",
-  "version": "1.0.3",
+  "version": "1.0.4",
   "description": "Generate badges for your GitHub projects",
   "type": "module",
   "bin": "./dist/main.js",