Template:Cite GitHub commit: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 wrap commit title in quotes  | 
				 add "via GitHub" to the end  | 
				||
| Line 1: | Line 1: | ||
[https://github.com/{{{org}}}/{{{repo}}}/commit/{{{commit}}} "{{{title}}}"] by [https://github.com/{{{author}}} {{{author}}}] in [https://github.com/{{{org}}}/{{{repo}}} {{{org}}}/{{{repo}}}] @ <code>{{{commit}}}</code>. Committed on {{{date}}}.<noinclude>  | [https://github.com/{{{org}}}/{{{repo}}}/commit/{{{commit}}} "{{{title}}}"] by [https://github.com/{{{author}}} {{{author}}}] in [https://github.com/{{{org}}}/{{{repo}}} {{{org}}}/{{{repo}}}] @ <code>{{{commit}}}</code>. Committed on {{{date}}} – via {{Wikipedia link|GitHub}}.<noinclude>  | ||
{{Documentation}}  | {{Documentation}}  | ||
[[Category:GitHub templates]]  | [[Category:GitHub templates]]  | ||
</noinclude>  | </noinclude>  | ||
Latest revision as of 23:42, 11 January 2025
"{{{title}}}" by {{{author}}} in {{{org}}}/{{{repo}}} @ {{{commit}}}. Committed on {{{date}}} – via GitHub.
This template cites a specific GitHub commit. It is preferred over the original {{Cite GitHub}} as it is formatted better and doesn't have useless parameters.
Template Data
Cites a GitHub commit.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Commit Title | title | The title (first line) of the commit.  | String | required | 
| Org/User | org | The organization or username of the repository this was committed in.  | String | required | 
| Repository | repo | The name of the repository name  | String | required | 
| Author | author | The username of the author. Do not link.  | String | required | 
| Commit Hash | commit | The 6-8 character short hash of this commit.  | String | required | 
| Commit Date | date | The date this commit was authored/committed.  | Date | required |