Skip to content

Commit

Permalink
feat!: initial implementation of logic for running release please
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 9, 2020
1 parent 362d78e commit 196390b
Show file tree
Hide file tree
Showing 18 changed files with 57,175 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.DS_Store
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# release-please-action
automated releases based on conventional commits
# Release Please Action

Automate releases based on Conventional Commit Messages.
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'release-please'
description: 'automated releases based on conventional commits'
author: 'Ben Coe <bencoe@google.com>'
inputs:
token:
description: 'token for creating and grooming release PRs (probably secrets.GITHUB_TOKEN)'
required: true
release-type:
description: 'what type of release is this, e.g., nodejs, java'
required: true
runs:
using: 'node12'
main: 'dist/index.js'
2 changes: 2 additions & 0 deletions dist/commit.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* {{#if subject}} {{~subject}} {{~else}} {{~header}} {{~/if}}{{#if body}}
{{body}}{{~/if}}
56 changes: 56 additions & 0 deletions dist/commit1.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
* {{header}}

{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{hash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else}}
{{~hash}}
{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~/if}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.issue}}/{{this.issue}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

30 changes: 30 additions & 0 deletions dist/commit2.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}

{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{shortHash}}]({{commitUrlFormat}}))
{{~else}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}{{this.prefix}}{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

10 changes: 10 additions & 0 deletions dist/footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{#if noteGroups}}
{{#each noteGroups}}

### {{title}}

{{#each notes}}
* {{text}}
{{/each}}
{{/each}}
{{/if}}
Empty file added dist/footer1.hbs
Empty file.
9 changes: 9 additions & 0 deletions dist/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### {{#if @root.linkCompare~}}
[{{version}}]({{compareUrlFormat}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} / {{date}}
{{/if}}
9 changes: 9 additions & 0 deletions dist/header1.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## {{#if isPatch~}} <small>
{{~/if~}} {{version}}
{{~#if title}} "{{title}}"
{{~/if~}}
{{~#if date}} ({{date}})
{{~/if~}}
{{~#if isPatch~}} </small>
{{~/if}}

13 changes: 13 additions & 0 deletions dist/header2.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{#if isPatch~}}
###
{{~else~}}
##
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}]({{compareUrlFormat}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}

0 comments on commit 196390b

Please sign in to comment.