Skip to content

Commit 9e8988b

Browse files
committed
Merge branch 'main' of https://github.com/slackapi/node-slack-sdk into feat-work-objects
2 parents 6892aef + d871f63 commit 9e8988b

1,377 files changed

Lines changed: 95407 additions & 22781 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ There are many ways you can contribute! :heart:
2424

2525
### Tests :mag:, Documentation :books:, Miscellaneous :sparkles:
2626
- If you'd like to improve the tests, you want to make the documentation clearer, you have an
27-
alternative implementation of something that may have advantages over the way its currently
27+
alternative implementation of something that may have advantages over the way it's currently
2828
done, or you have any other change, we would be happy to hear about it!
29-
- If its a trivial change, go ahead and [send a Pull Request](#creating_a_pull_request) with the changes you have in mind.
29+
- If it's a trivial change, go ahead and [send a Pull Request](#creating_a_pull_request) with the changes you have in mind.
3030
- If not, [open an Issue](https://github.com/slackapi/node-slack-sdk/issues/new) to discuss the idea first.
3131

3232
If you're new to our project and looking for some way to make your first contribution, look for

.github/dependabot.yml

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ updates:
1313
patterns:
1414
- "@types/mocha"
1515
- "mocha"
16+
labels:
17+
- "dependencies"
18+
- "javascript"
19+
- "pkg:cli-hooks"
1620
schedule:
1721
interval: "weekly"
1822

@@ -34,6 +38,10 @@ updates:
3438
patterns:
3539
- "@types/mocha"
3640
- "mocha"
41+
labels:
42+
- "dependencies"
43+
- "javascript"
44+
- "pkg:cli-test"
3745
schedule:
3846
interval: "weekly"
3947

@@ -55,6 +63,10 @@ updates:
5563
patterns:
5664
- "@types/mocha"
5765
- "mocha"
66+
labels:
67+
- "dependencies"
68+
- "javascript"
69+
- "pkg:logger"
5870
schedule:
5971
interval: "weekly"
6072

@@ -79,6 +91,10 @@ updates:
7991
patterns:
8092
- "@types/mocha"
8193
- "mocha"
94+
labels:
95+
- "dependencies"
96+
- "javascript"
97+
- "pkg:oauth"
8298
schedule:
8399
interval: "weekly"
84100

@@ -103,11 +119,19 @@ updates:
103119
patterns:
104120
- "@types/mocha"
105121
- "mocha"
122+
labels:
123+
- "dependencies"
124+
- "javascript"
125+
- "pkg:socket-mode"
106126
schedule:
107127
interval: "weekly"
108128

109129
- package-ecosystem: "npm"
110130
directory: "/packages/types"
131+
labels:
132+
- "dependencies"
133+
- "javascript"
134+
- "pkg:types"
111135
schedule:
112136
interval: "weekly"
113137

@@ -134,32 +158,51 @@ updates:
134158
patterns:
135159
- "@types/mocha"
136160
- "mocha"
161+
labels:
162+
- "dependencies"
163+
- "javascript"
164+
- "pkg:web-api"
165+
schedule:
166+
interval: "weekly"
167+
168+
- package-ecosystem: "npm"
169+
directory: "/packages/webhook"
170+
groups:
171+
dev-chai:
172+
dependency-type: "development"
173+
patterns:
174+
- "@types/chai"
175+
- "chai"
176+
dev-mocha:
177+
dependency-type: "development"
178+
patterns:
179+
- "@types/mocha"
180+
- "mocha"
181+
labels:
182+
- "dependencies"
183+
- "javascript"
184+
- "pkg:webhook"
137185
schedule:
138186
interval: "weekly"
139187

140188
- package-ecosystem: "npm"
141189
directories:
142-
- "/"
143-
- "/docs"
144190
- "/examples/*"
145191
groups:
146-
docusaurus:
147-
patterns:
148-
- "@docusaurus/*"
149-
- "docusaurus-plugin-typedoc"
150-
- "typedoc"
151-
- "typedoc-plugin-markdown"
152192
slack:
153193
patterns:
154194
- "@slack/*"
155-
react:
156-
patterns:
157-
- "react"
158-
- "react-dom"
195+
labels:
196+
- "area:examples"
197+
- "dependencies"
198+
- "javascript"
159199
schedule:
160200
interval: "monthly"
161201

162202
- package-ecosystem: "github-actions"
163203
directory: "/"
204+
labels:
205+
- "dependencies"
206+
- "github_actions"
164207
schedule:
165208
interval: "monthly"

.github/maintainers_guide.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ We have included `launch.json` files that store configuration for `vscode` debug
2929

3030
See the [Docs README](https://github.com/slackapi/node-slack-sdk/blob/main/docs/README.md) for information on how the docs site work.
3131

32-
The reference docs are generated on every site build, pulling from this repo's files. The site is built automatically on every release via `docs-deploy.yml`.
32+
The reference docs for each package is independent of the others. They're generated using `typedoc` and `typedoc-plugin-markdown`. In each package's `package.json` there's a `docs` command that generates reference docs for that package based on the configuration settings found in `/package-name/typedoc.json`.
33+
34+
The script places the reference markdown files in `/reference/package-name`.
3335

3436
### 🚀 Releases
3537
_For beta releases, see [**Beta Releases**](https://github.com/slackapi/node-slack-sdk/blob/main/.github/maintainers_guide.md#-beta-releases) section below_
@@ -50,15 +52,17 @@ Releasing can feel intimidating at first, but rest assured: if you make a mistak
5052

5153
4. For each package to be released, run `npm run test` to verify that tests are passing and code is free of linting errors.
5254

53-
5. On your new branch, bump the version(s) in `package.json` (see [Versioning and Tags](https://github.com/slackapi/node-slack-sdk/blob/main/.github/maintainers_guide.md#-versioning-and-tags))
55+
5. Generate the reference docs for that package by running `npm run docs`.
56+
57+
6. On your new branch, bump the version(s) in `package.json` (see [Versioning and Tags](https://github.com/slackapi/node-slack-sdk/blob/main/.github/maintainers_guide.md#-versioning-and-tags))
5458

5559
- Make a single commit for the version(s) bump, following the format in: ([Example](https://github.com/slackapi/node-slack-sdk/commit/1503609d79abf035e9e21bad7360e124e4211594))
5660

5761
- Create a pull request for the version change ([Example](https://github.com/slackapi/node-slack-sdk/pull/1059))
5862

5963
- Add appropriate labels on the PR, including `release`
6064

61-
6. Once the PR has been approved and tests have passed, merge it into the main repository.
65+
7. Once the PR has been approved and tests have passed, merge it into the main repository.
6266

6367
- Check out your local `main` branch and update it to get the latest changes: `git checkout main && git pull origin main`
6468

@@ -67,21 +71,21 @@ Releasing can feel intimidating at first, but rest assured: if you make a mistak
6771
- Push the new tag up to origin: `git push --tags origin`
6872

6973
7. Publish the release to npm
70-
- To publish, you need to be a member of the `slack Org` on npm and set up 2-Factor Auth with your passsword generator of choice. Before you can publish with npm, you must run `npm login` from the command line.
74+
- To publish, you need to be a member of the `slack Org` on npm and set up 2-Factor Auth with your password generator of choice. Before you can publish with npm, you must run `npm login` from the command line.
7175

7276
- As the final validation, within the package directory (ex: `packages/types`), run `mv package-lock.json package-lock.json.bk && rm -rf node_modules/ dist/ && npm i && npm test && npm pack` and confirm if there are `*.js`, `*.d.ts` files under the `dist` directory.
7377

7478
- Run `npm publish . --otp YOUR_OTP_CODE`. To generate an OTP (One Time Password), use your password generator of choice (Duo, 1Password)
7579

76-
8. Close GitHub Milestone(s)
80+
9. Close GitHub Milestone(s)
7781

7882
- Close the relevant GitHub Milestone(s) for the release(s)
7983

8084
- Check the existing GitHub Milestones to see if the next minor version exists. If it doesn't, then create a GitHub Milestone for new issues to live in. Typically, you'll create a new minor version - however, if there are any bugs that need to be carried over from the current GitHub Milestone, you could make a Milestone for a patch version to reflect those issues
8185

8286
- Move any unfinished, open issues to the next GitHub Milestone
8387

84-
9. Create GitHub Release(s) with release notes
88+
10. Create GitHub Release(s) with release notes
8589

8690
- From the repository, navigate to the **Releases** section and draft a new release
8791

@@ -93,7 +97,7 @@ Releasing can feel intimidating at first, but rest assured: if you make a mistak
9397

9498
- Once the release notes are ready, click the "Publish Release" button to make them public
9599

96-
10. Communicate the release (as appropriate)
100+
11. Communicate the release (as appropriate)
97101

98102
- **Internal**
99103

@@ -159,7 +163,7 @@ Releasing can feel intimidating at first, but rest assured: if you make a mistak
159163
### 🔖 Versioning and Tags
160164
This project is versioned using [Semantic Versioning](http://semver.org/), particularly in the [npm flavor](https://docs.npmjs.com/getting-started/semantic-versioning). Each release is tagged using git. The naming convention for tags is `{package_name}@{version}`. For example, the tag `@slack/web-api@v5.0.0` marks the v5.0.0 release of the `@slack/web-api` package. A single commit will have multiple tags when multiple packages are released simultaneously.
161165

162-
One package that expands upon the standard major.minor.patch version schema typically associated with Semantic Versioning is the `@slack/cli-test` package. This package employs standard major.minor.patch version, in addition to a [build metadata suffix](https://semver.org/#spec-item-10) suffix of the form `+cli.X.Y.Z`, e.g. `0.1.0+cli.2.24.0`. The version after `+cli.` communicates compatibility between the `@slack/cli-test` package and the [Slack Platfrom CLI](https://api.slack.com/automation/quickstart) itself.
166+
One package that expands upon the standard major.minor.patch version schema typically associated with Semantic Versioning is the `@slack/cli-test` package. This package employs standard major.minor.patch version, in addition to a [build metadata suffix](https://semver.org/#spec-item-10) suffix of the form `+cli.X.Y.Z`, e.g. `0.1.0+cli.2.24.0`. The version after `+cli.` communicates compatibility between the `@slack/cli-test` package and the [Slack CLI](https://docs.slack.dev/slack-cli/) itself.
163167

164168
### 🪵 Branches
165169
`main` is where active development occurs. Long running named feature branches are occasionally created for collaboration on a feature that has a large scope (because everyone cannot push commits to another person's open Pull Request). After a major version increment, a maintenance branch for the older major version is left open (e.g. `v3`, `v4`, etc).

.github/workflows/ci-build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,19 @@ jobs:
2525
- web-api
2626
- webhook
2727
runs-on: ${{ matrix.os }}
28+
permissions:
29+
contents: read
2830
steps:
2931
- name: Configure git settings (Windows)
3032
if: matrix.os == 'windows-latest'
3133
run: |
3234
git config --global core.autocrlf false
3335
git config --global core.eol lf
34-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
with:
38+
persist-credentials: false
3539
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3741
with:
3842
node-version: ${{ matrix.node-version }}
3943
- run: npm --version
@@ -81,20 +85,20 @@ jobs:
8185
working-directory: packages/${{ matrix.package }}
8286
- name: Check for coverage report existence
8387
id: check_coverage
84-
uses: andstor/file-existence-action@v3
88+
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
8589
with:
8690
files: packages/${{ matrix.package }}/coverage/lcov.info
8791
- name: Upload code coverage
8892
if: matrix.node-version == '22.x' && matrix.os == 'ubuntu-latest' && steps.check_coverage.outputs.files_exists == 'true'
89-
uses: codecov/codecov-action@v5
93+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9094
with:
9195
token: ${{ secrets.CODECOV_TOKEN }}
9296
directory: packages/${{ matrix.package }}/coverage
9397
flags: ${{ matrix.package }}
9498
verbose: true
9599
- name: Upload test results to Codecov
96100
if: ${{ !cancelled() }}
97-
uses: codecov/test-results-action@v1
101+
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
98102
with:
99103
file: packages/${{ matrix.package }}/coverage/test-results.xml
100104
flags: ${{ matrix.node-version }},${{ matrix.os }},${{ matrix.package }}

.github/workflows/docs-deploy.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/triage-issues.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44

55
name: Close stale issues and PRs
66

7-
on:
7+
on:
88
workflow_dispatch:
99
schedule:
10-
- cron: '0 0 * * 1'
11-
12-
permissions:
13-
issues: write
14-
pull-requests: write
10+
- cron: "0 0 * * 1"
1511

1612
jobs:
1713
stale:
1814
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
1918
steps:
20-
- uses: actions/stale@v9.1.0
19+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2120
with:
2221
days-before-issue-stale: 30
2322
days-before-issue-close: 10
@@ -30,4 +29,4 @@ jobs:
3029
exempt-all-milestones: true
3130
remove-stale-when-updated: true
3231
enable-statistics: true
33-
operations-per-run: 60
32+
operations-per-run: 60

0 commit comments

Comments
 (0)