-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎉 Add resolve-config.js for semantic-release-discord
- Loading branch information
1 parent
0ef9f3d
commit d61f203
Showing
3 changed files
with
19 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @typedef {import('./types').Context} Context | ||
* @typedef {import('./types').Config} Config | ||
*/ | ||
|
||
/** | ||
* @param {Config} pluginConfig -. | ||
* @param {Context} context -. | ||
* @returns {Config} -. | ||
* @example | ||
* resolveConfig(pluginConfig, context) | ||
*/ | ||
function resolveConfig({ webhookUrl }, { env }) { | ||
return { | ||
webhookUrl: webhookUrl || env.DISCORD_WEBHOOK, | ||
} | ||
} | ||
|
||
module.exports = resolveConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
const core = require('@actions/core'); | ||
const github = require('@actions/github'); | ||
|
||
/** | ||
|
27 changes: 0 additions & 27 deletions
27
modules/semantic-release-github-dispatch/resolve-config.js
This file was deleted.
Oops, something went wrong.