Skip to content

Commit 7b2d37b

Browse files
committed
wip
1 parent 4144b91 commit 7b2d37b

5 files changed

Lines changed: 25504 additions & 26218 deletions

File tree

CLAUDE.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## What this is
66

7-
A GitHub Action that sends messages, reactions, threads, and block-based messages to Slack via the Slack API. Written in JavaScript with zero runtime dependencies beyond `@actions/core` and `@actions/github`.
7+
A GitHub Action that sends messages, reactions, threads, and block-based messages to Slack via the Slack API. Written in JavaScript with one runtime dependency: `@actions/core`.
88

99
- **Action entry point:** `dist/index.js` (compiled bundle — never edit this directly)
1010
- **Source entry point:** `index.js``src/invoke.js`
@@ -17,12 +17,18 @@ npm run test-debug # Debug Jest with Node inspector
1717
npm run lint # ESLint with auto-fix
1818
npm run build # Compile dist/index.js via ncc (required before deploy)
1919
npm run build-legacy # Use if build fails due to OpenSSL issues
20+
```
21+
22+
Integration test (requires real Slack token):
23+
```bash
24+
# PowerShell
25+
$env:BOT_USER_OAUTH_ACCESS_TOKEN="<token>"; $env:CHANNEL="<channel-id>"; node integration-test/end-to-end.js
2026

21-
# Integration test (requires real Slack token)
22-
env BOT_USER_OAUTH_ACCESS_TOKEN=<token> CHANNEL=<channel-id> node integration-test/end-to-end.js
27+
# bash/macOS
28+
BOT_USER_OAUTH_ACCESS_TOKEN=<token> CHANNEL=<channel-id> node integration-test/end-to-end.js
2329
```
2430

25-
**After any source change, run `yarn build` to update `dist/index.js`.** The action runs from `dist/index.js`, not the source files.
31+
**After any source change, run `npm run build` to update `dist/index.js`.** The action runs from `dist/index.js`, not the source files.
2632

2733
## Architecture
2834

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
This Action allows you to send messages (and reactions/threads/update/blocks) to Slack from your Github Actions. Supports Slack's required arguments as well as all the optional once. It's JavaScript-based and thus fast to run.
99

10-
The goal is to have zero npm/yarn dependencies except the two from Github that is required for an action to work (@actions/core & @actions/github).
10+
The goal is to have zero npm/yarn dependencies except `@actions/core` which is required for an action to work.
1111

1212
![Slack result](./images/slack-result.png "Slack result")
1313

0 commit comments

Comments
 (0)