Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
feat: adds targetUrl as input (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephigenia authored Jul 26, 2022
1 parent 9edb878 commit 9e9c6a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ See [Conventional Commits](https://www.conventionalcommits.org/) for sample titl

**Required** Conventional changelog preset. Default `"conventional-changelog-angular"`.

### `target-url`

Optional URL to be used when linking the "Details" in the actions overview. Default `"https://github.com/aslafy-z/conventional-pr-title-action"`.

## Outputs

### `success`
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async function run() {
let contextName = core.getInput('context-name');
let successState = core.getInput('success-state');
let failureState = core.getInput('failure-state');
let targetUrl = core.getInput('target-url') || 'https://github.com/aslafy-z/conventional-pr-title-action';
const installPresetPackage = core.getInput('preset');
const requirePresetPackage = npa(installPresetPackage).name;

Expand Down Expand Up @@ -49,7 +50,7 @@ async function run() {
state,
description,
sha: contextPullRequest.head.sha,
target_url: 'https://github.com/aslafy-z/conventional-pr-title-action',
target_url: targetUrl,
context: contextName,
},
);
Expand Down

0 comments on commit 9e9c6a6

Please sign in to comment.