Skip to content

Commit

Permalink
Fixes and tests (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdum authored Jul 29, 2024
1 parent c7f7ef8 commit 15fc48c
Show file tree
Hide file tree
Showing 20 changed files with 1,263 additions and 1,054 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ runs:
branding:
icon: 'bell'
color: 'blue'
label: 'Slack Release Notifications'
label: 'Slack Release Notifications'
6 changes: 6 additions & 0 deletions dist/handlePRClosed.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/**
* Handles the event when a pull request is closed.
* @param slackToken - Slack bot token.
* @param slackChannel - Slack channel ID.
* @param closeMessageTemplate - Template for the close Slack message.
*/
export declare function handlePRClosed(slackToken: string, slackChannel: string, closeMessageTemplate: string): Promise<void>;
67 changes: 0 additions & 67 deletions dist/handlePRClosed.js

This file was deleted.

9 changes: 9 additions & 0 deletions dist/handlePROpened.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/**
* Handles the event when a pull request is opened.
* @param slackToken - Slack bot token.
* @param slackChannel - Slack channel ID.
* @param githubToken - GitHub token.
* @param initialMessageTemplate - Template for the initial Slack message.
* @param commitListMessageTemplate - Template for the commit list Slack message.
* @param githubToSlackMap - Optional mapping of GitHub usernames to Slack user IDs.
*/
export declare function handlePROpened(slackToken: string, slackChannel: string, githubToken: string, initialMessageTemplate: string, commitListMessageTemplate: string, githubToSlackMap?: Record<string, string>): Promise<void>;
109 changes: 0 additions & 109 deletions dist/handlePROpened.js

This file was deleted.

7 changes: 7 additions & 0 deletions dist/handlePRUpdated.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/**
* Handles the event when a pull request is updated with new commits.
* @param slackToken - Slack bot token.
* @param slackChannel - Slack channel ID.
* @param githubToken - GitHub token.
* @param updateMessageTemplate - Template for the update Slack message.
*/
export declare function handlePRUpdated(slackToken: string, slackChannel: string, githubToken: string, updateMessageTemplate: string): Promise<void>;
80 changes: 0 additions & 80 deletions dist/handlePRUpdated.js

This file was deleted.

Loading

0 comments on commit 15fc48c

Please sign in to comment.