From 5cb0c42842f7c026864802b629d5f311bb957986 Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Mon, 3 Jun 2024 19:45:15 -0400 Subject: [PATCH] Remove `#` from episode numbers in commit messages @changelogbot keeps show notes, transcripts, and other content up to date. It creates commit titles like `Add Changelog & Friends #46`. On changelog.com, referring to episodes like `Changelog & Friends #46` is no problem. GitHub, however, will autolink these episode references and think they are issue or PR numbers. For example, here's a commit (https://github.com/thechangelog/show-notes/commit/076c238) referencing a PR that has nothing to do with the show notes being committed. This commit will update `lib/changelog/github/source.ex` to remove the leading `#` and avoid having GitHub autolink the episode numbers. --- lib/changelog/github/source.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/changelog/github/source.ex b/lib/changelog/github/source.ex index 2fbfbcaeac..dce0527502 100644 --- a/lib/changelog/github/source.ex +++ b/lib/changelog/github/source.ex @@ -24,7 +24,7 @@ defmodule Changelog.Github.Source do defp joined(list), do: Enum.join(list, "/") - defp name(episode), do: "#{episode.podcast.name} ##{episode.slug}" + defp name(episode), do: "#{episode.podcast.name} #{episode.slug}" defp path(episode) do podcast_name = PodcastView.dasherized_name(episode.podcast)