commit.hbs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. *{{#if scope}} **{{scope}}:**
  2. {{~/if}} {{#if subject}}
  3. {{~subject}}
  4. {{~else}}
  5. {{~header}}
  6. {{~/if}}
  7. {{~!-- commit link --}} {{#if @root.linkReferences~}}
  8. ([{{shortHash}}](
  9. {{~#if @root.repository}}
  10. {{~#if @root.host}}
  11. {{~@root.host}}/
  12. {{~/if}}
  13. {{~#if @root.owner}}
  14. {{~@root.owner}}/
  15. {{~/if}}
  16. {{~@root.repository}}
  17. {{~else}}
  18. {{~@root.repoUrl}}
  19. {{~/if}}/
  20. {{~@root.commit}}/{{hash}}))
  21. {{~else}}
  22. {{~shortHash}}
  23. {{~/if}}
  24. {{~!-- commit references --}}
  25. {{~#if references~}}
  26. , closes
  27. {{~#each references}} {{#if @root.linkReferences~}}
  28. [
  29. {{~#if this.owner}}
  30. {{~this.owner}}/
  31. {{~/if}}
  32. {{~this.repository}}#{{this.issue}}](
  33. {{~#if @root.repository}}
  34. {{~#if @root.host}}
  35. {{~@root.host}}/
  36. {{~/if}}
  37. {{~#if this.repository}}
  38. {{~#if this.owner}}
  39. {{~this.owner}}/
  40. {{~/if}}
  41. {{~this.repository}}
  42. {{~else}}
  43. {{~#if @root.owner}}
  44. {{~@root.owner}}/
  45. {{~/if}}
  46. {{~@root.repository}}
  47. {{~/if}}
  48. {{~else}}
  49. {{~@root.repoUrl}}
  50. {{~/if}}/
  51. {{~@root.issue}}/{{this.issue}})
  52. {{~else}}
  53. {{~#if this.owner}}
  54. {{~this.owner}}/
  55. {{~/if}}
  56. {{~this.repository}}#{{this.issue}}
  57. {{~/if}}{{/each}}
  58. {{~/if}}