Created an Emacs Lisp function to insert the title of a GitHub Issue/PR/Discussion URL

This article is a translation of https://masutaka.net/2025-04-15-1/. On GitHub, when you paste Issue/PR/Discussion URLs into comments or descriptions, GitHub automatically renders the status, title, and number. For example, if you write the following: * https://github.com/masutaka/sandbox/issues/93 * https://github.com/masutaka/sandbox/issues/70 * https://github.com/masutaka/sandbox/pull/90 * https://github.com/masutaka/sandbox/discussions/91 It renders like this: However, when writing in a plain text area or text editor, the URLs aren't automatically expanded, so you can't see the titles or statuses at a glance. This isn't a problem with just a few URLs, but it can become confusing when dealing with many. Previously, I added comments manually like this, but it became tedious, so I created an Emacs Lisp function to automate the process. * https://github.com/masutaka/sandbox/issues/93 (In Progress) * https://github.com/masutaka/sandbox/issues/70 (Done) * https://github.com/masutaka/sandbox/pull/90 * https://github.com/masutaka/sandbox/discussions/91 The Function I Created

Apr 18, 2025 - 11:06
 0
Created an Emacs Lisp function to insert the title of a GitHub Issue/PR/Discussion URL

This article is a translation of https://masutaka.net/2025-04-15-1/.

On GitHub, when you paste Issue/PR/Discussion URLs into comments or descriptions, GitHub automatically renders the status, title, and number.

For example, if you write the following:

* https://github.com/masutaka/sandbox/issues/93
* https://github.com/masutaka/sandbox/issues/70
* https://github.com/masutaka/sandbox/pull/90
* https://github.com/masutaka/sandbox/discussions/91

It renders like this:

Rendering example

However, when writing in a plain text area or text editor, the URLs aren't automatically expanded, so you can't see the titles or statuses at a glance. This isn't a problem with just a few URLs, but it can become confusing when dealing with many.

Previously, I added comments manually like this, but it became tedious, so I created an Emacs Lisp function to automate the process.

* https://github.com/masutaka/sandbox/issues/93  (In Progress)
* https://github.com/masutaka/sandbox/issues/70  (Done)
* https://github.com/masutaka/sandbox/pull/90 
* https://github.com/masutaka/sandbox/discussions/91 

The Function I Created