Skip to content

Commit c758aaf

Browse files
committed
Fix: Remove trailing punctuation from commit messages
Removes unnecessary periods from the end of the "object" field when creating commit messages for pull requests and issues in the Github feed. Also clarifies the description for fork events.
1 parent 407b06f commit c758aaf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/GithubFeed.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
tempEvents.push({
9292
...base,
9393
verb: verb + " pull request",
94-
object: `${details.title} (#${pr.number}).`,
94+
object: `${details.title} (#${pr.number})`,
9595
description: details.body,
9696
url: details.url
9797
});
@@ -101,14 +101,14 @@
101101
tempEvents.push({
102102
...base,
103103
verb: payload.action + " issue",
104-
object: `${details.title} (#${payload.issue.number}).`,
104+
object: `${details.title} (#${payload.issue.number})`,
105105
description: details.body,
106106
url: details.url
107107
});
108108
} else if (type === "WatchEvent") {
109109
tempEvents.push({ ...base, verb: "starred", object: repo.name, url: `https://github.com/${repo.name}` });
110110
} else if (type === "ForkEvent") {
111-
tempEvents.push({ ...base, verb: "forked", object: repo.name, description: `To ${payload.forkee.full_name}`, url: payload.forkee.html_url });
111+
tempEvents.push({ ...base, verb: "forked", object: repo.name, description: `Original repository created by ${payload.forkee.full_name}`, url: payload.forkee.html_url });
112112
}
113113
}
114114
events = tempEvents;

0 commit comments

Comments
 (0)