Template:Cite GitHub commit: Difference between revisions
Jump to navigation
Jump to search
fix ordering of links Tag: 2017 source edit |
actually link to commit Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
[https://github.com/{{{org}}}/{{{repo}}} {{{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}}}.<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:GitHub templates]] | [[Category:GitHub templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:55, 10 January 2025
{{{title}}} by {{{author}}} in {{{org}}}/{{{repo}}} @ {{{commit}}}
. Committed on {{{date}}}.
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 |