Skip to content

Commit

Permalink
feat: 🎉 Add resolve-config.js for semantic-release-discord
Browse files Browse the repository at this point in the history
  • Loading branch information
realashleybailey committed Nov 8, 2023
1 parent 0ef9f3d commit d61f203
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 28 deletions.
19 changes: 19 additions & 0 deletions modules/semantic-release-discord/resolve-config.js
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;
1 change: 0 additions & 1 deletion modules/semantic-release-github-dispatch/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const core = require('@actions/core');
const github = require('@actions/github');

/**
Expand Down
27 changes: 0 additions & 27 deletions modules/semantic-release-github-dispatch/resolve-config.js

This file was deleted.

0 comments on commit d61f203

Please sign in to comment.