Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 196390b

Browse files
author
bcoe
committed
feat!: initial implementation of logic for running release please
1 parent 362d78e commit 196390b

18 files changed

Lines changed: 57175 additions & 2 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.DS_Store

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# release-please-action
2-
automated releases based on conventional commits
1+
# Release Please Action
2+
3+
Automate releases based on Conventional Commit Messages.

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'release-please'
2+
description: 'automated releases based on conventional commits'
3+
author: 'Ben Coe <bencoe@google.com>'
4+
inputs:
5+
token:
6+
description: 'token for creating and grooming release PRs (probably secrets.GITHUB_TOKEN)'
7+
required: true
8+
release-type:
9+
description: 'what type of release is this, e.g., nodejs, java'
10+
required: true
11+
runs:
12+
using: 'node12'
13+
main: 'dist/index.js'

dist/commit.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* {{#if subject}} {{~subject}} {{~else}} {{~header}} {{~/if}}{{#if body}}
2+
{{body}}{{~/if}}

dist/commit1.hbs

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

dist/commit2.hbs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
*{{#if scope}} **{{scope}}:**
2+
{{~/if}} {{#if subject}}
3+
{{~subject}}
4+
{{~else}}
5+
{{~header}}
6+
{{~/if}}
7+
8+
{{~!-- commit link --}} {{#if @root.linkReferences~}}
9+
([{{shortHash}}]({{commitUrlFormat}}))
10+
{{~else}}
11+
{{~shortHash}}
12+
{{~/if}}
13+
14+
{{~!-- commit references --}}
15+
{{~#if references~}}
16+
, closes
17+
{{~#each references}} {{#if @root.linkReferences~}}
18+
[
19+
{{~#if this.owner}}
20+
{{~this.owner}}/
21+
{{~/if}}
22+
{{~this.repository}}{{this.prefix}}{{this.issue}}]({{issueUrlFormat}})
23+
{{~else}}
24+
{{~#if this.owner}}
25+
{{~this.owner}}/
26+
{{~/if}}
27+
{{~this.repository}}{{this.prefix}}{{this.issue}}
28+
{{~/if}}{{/each}}
29+
{{~/if}}
30+

dist/footer.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{#if noteGroups}}
2+
{{#each noteGroups}}
3+
4+
### {{title}}
5+
6+
{{#each notes}}
7+
* {{text}}
8+
{{/each}}
9+
{{/each}}
10+
{{/if}}

dist/footer1.hbs

Whitespace-only changes.

dist/header.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### {{#if @root.linkCompare~}}
2+
[{{version}}]({{compareUrlFormat}})
3+
{{~else}}
4+
{{~version}}
5+
{{~/if}}
6+
{{~#if title}} "{{title}}"
7+
{{~/if}}
8+
{{~#if date}} / {{date}}
9+
{{/if}}

dist/header1.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## {{#if isPatch~}} <small>
2+
{{~/if~}} {{version}}
3+
{{~#if title}} "{{title}}"
4+
{{~/if~}}
5+
{{~#if date}} ({{date}})
6+
{{~/if~}}
7+
{{~#if isPatch~}} </small>
8+
{{~/if}}
9+

0 commit comments

Comments
 (0)