Skip to content

Commit

Permalink
Merge pull request #9 from dlaird-ovo/handle-secrets
Browse files Browse the repository at this point in the history
Support configSchema so that secrets are marked correctly.
  • Loading branch information
arhill05 authored Aug 27, 2024
2 parents f7a8730 + d7ddca5 commit 9a634ff
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
35 changes: 35 additions & 0 deletions config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export interface Config {
slack: {
/**
*
* This is required if you're using a Slack webhook URL to send messages and you
* don't intend to supply the webhook URL from the action inputs.
*
* @visibility secret
*/
webhookUrl?: string;
/**
*
* These are required if you are using the Slack API to send messages and you
* don't intend to supply these from the action inputs.
*
* @visibility secret
*/
token?: string;
/**
*
* The ID of the conversation to send messages to. Either this or the conversationName
* are required here if you don't intend to supply either from the action inputs.
*
* @visibility backend
*/
conversationId?: string;
/**
* The name of the conversation to send messages to. Either this or the conversationId
* are rqeuired here if you don't intend to supply either from the action inputs.
*
* @visibility backend
*/
conversationName?: string;
};
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"winston": "^3.10.0"
},
"files": [
"dist"
]
"dist",
"config.d.ts"
],
"configSchema": "config.d.ts"
}

0 comments on commit 9a634ff

Please sign in to comment.