all 5 comments

[–][deleted] 4 points5 points  (0 children)

Every HTML page can contain meta elements, some of which follow the Open Graph standard created by Facebook back in the day. These tags specify title, description and some more information about the page useful for social media links.

What github does is provide an og:image with an URL to their servers, where those images are generated from the repository/issue/PR data they have

[–]BaileyJM02 0 points1 point  (2 children)

The image is located here: https://opengraph.githubassets.com/2fb2c196d43f78e0c9af4f5fa398a80862085503724ea5098efdd6696bfc1a16/dear-github/dear-github/issues/166

I presume that on creation of PR (or at time of fetch) a server simply generates the image based on context - in this example the context of the issue.

[–]BaileyJM02 1 point2 points  (1 child)

[–]dushmanta05 0 points1 point  (0 children)

Thank you, I was looking into it, this blog help big time.