Skip to content

Commit 8b77cf0

Browse files
committed
fix: support multi org #27
1 parent 790e358 commit 8b77cf0

File tree

13 files changed

+15578
-24526
lines changed

13 files changed

+15578
-24526
lines changed

dist/index.js

Lines changed: 12311 additions & 22319 deletions
Large diffs are not rendered by default.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 3013 additions & 1941 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@krauters/github-notifier",
33
"description": "GitHub Notifier by Krauters – Post Open Pull Requests to Slack",
4-
"version": "0.14.0",
4+
"version": "0.15.0",
55
"author": "Colten Krauter <coltenkrauter>",
66
"type": "module",
77
"homepage": "https://buymeacoffee.com/coltenkrauter",
@@ -36,27 +36,27 @@
3636
"dependencies": {
3737
"@actions/core": "1.11.1",
3838
"@actions/github": "6.0.0",
39-
"@krauters/environment": "^0.2.1",
40-
"@krauters/logger": "^0.3.2",
41-
"@krauters/structures": "^1.0.2",
42-
"@krauters/utils": "^1.0.0",
43-
"@octokit/rest": "21.0.2",
44-
"@octokit/types": "13.6.1",
45-
"@slack/web-api": "7.7.0",
39+
"@krauters/environment": "^0.5.2",
40+
"@krauters/logger": "^2.1.0",
41+
"@krauters/structures": "^1.3.0",
42+
"@krauters/utils": "^1.4.0",
43+
"@octokit/rest": "21.1.1",
44+
"@octokit/types": "13.10.0",
45+
"@slack/web-api": "7.9.0",
4646
"simple-git": "^3.27.0"
4747
},
4848
"devDependencies": {
49-
"@krauters/eslint-config": "^1.4.0",
49+
"@krauters/eslint-config": "^1.8.0",
5050
"@types/jest": "^29.5.14",
51-
"@types/node": "^22.9.0",
52-
"@vercel/ncc": "^0.38.2",
53-
"husky": "9.1.6",
51+
"@types/node": "^22.13.13",
52+
"@vercel/ncc": "^0.38.3",
53+
"husky": "9.1.7",
5454
"jest": "^29.7.0",
5555
"make-coverage-badge": "^1.2.0",
56-
"ts-jest": "^29.2.5",
56+
"ts-jest": "^29.3.0",
5757
"ts-node": "^10.9.2",
58-
"typescript": "^5.6.3",
59-
"typescript-eslint": "^8.13.0"
58+
"typescript": "^5.8.2",
59+
"typescript-eslint": "^8.28.0"
6060
},
6161
"bugs": {
6262
"url": "https://github.com/krauters/github-notifier/issues/new?title=%5BBUG%5D+Brief+Description&template=bug_report.md"

src/app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import { formatStringList, plural, snapDate, SnapType } from '@krauters/utils'
77

88
import type { RunProps } from './structures.js'
99

10-
import { homepage, name, version } from '../package.json'
10+
import pkg from '../package.json' with { type: 'json' }
1111
import { workflowLogsUrl, workflowUrl } from './defaults.js'
1212
import { GitHubClient } from './utils/github/github-client.js'
1313
import { PullState, RepositoryType } from './utils/github/structures.js'
1414
import { getFirstBlocks, getLastBlocks, getPullBlocks } from './utils/slack/blocks.js'
1515
import { SlackClient } from './utils/slack/slack-client.js'
1616
import { getApprovedPullRequest } from './utils/test-data.js'
1717

18+
const { homepage, name, version } = pkg
19+
1820
/**
1921
* Runs the GitHub Notifier to query GitHub for open pull requests and then post messages to Slack channels.
2022
*

src/structures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
} from './utils/github/structures.js'
66
import type { SlackClientProps } from './utils/slack/structures.js'
77

8-
export interface RunProps extends ConfigurableGetRepositoriesProps, ConfigurableGetPullsProps {
8+
export interface RunProps extends ConfigurableGetPullsProps, ConfigurableGetRepositoriesProps {
99
githubProps: GitHubClientProps
1010
slackProps: SlackClientProps
1111
withPullReport: boolean

0 commit comments

Comments
 (0)