Skip to content

Commit

Permalink
Rename RELEASE_TITLE input to RELEASE_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
mheap committed Nov 20, 2020
1 parent 156f6f4 commit 39d6a4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Toolkit.run(

// Use the title from the release, plus anything set in the environment
let title = release.name;
if (tools.inputs.release_title) {
title = tools.inputs.release_title + " " + title;
if (tools.inputs.release_prefix) {
title = tools.inputs.release_prefix + " " + title;
}

// Then the content
Expand Down
4 changes: 2 additions & 2 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ describe("GitHub Release to Noticeable", () => {
},

{
name: "adds a title prefix if the RELEASE_TITLE input is provided",
name: "adds a title prefix if the RELEASE_PREFIX input is provided",
env: {
INPUT_RELEASE_TITLE: "demo-project",
INPUT_RELEASE_PREFIX: "demo-project",
},
variables: {
title: "demo-project v1.2.3",
Expand Down

0 comments on commit 39d6a4b

Please sign in to comment.