Skip to content

Commit

Permalink
Attempt to fix issue_response script (zed-industries#24842)
Browse files Browse the repository at this point in the history
Release Notes:

- N/A
  • Loading branch information
JosephTLyons authored Feb 14, 2025
1 parent e133d3b commit 5ac8216
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/issue_response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ on:

jobs:
issue-response:
if: github.repository_owner == 'zed-industries'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
version: 9

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: "script/issues_needing_comments/pnpm-lock.yaml"
cache-dependency-path: "script/issue_response/pnpm-lock.yaml"

- run: pnpm install --dir script/issues_needing_comments
- run: pnpm install --dir script/issue_response

- name: Run Issue Response Script
run: pnpm run --dir script/issues_needing_comments ts-node main.ts
- name: Run Issue Response
run: pnpm exec ts-node script/issue_response/main.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_ISSUE_RESPONSE_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_RESPONSE_WEBHOOK_URL }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/crates/zed/resources/flatpak/flatpak-cargo-sources.json
/dev.zed.Zed*.json
/plugins/bin
**/node_modules
/script/node_modules
/zed.xcworkspace
DerivedData/
Packages
Expand Down
1 change: 1 addition & 0 deletions script/issues_response/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"devDependencies": {
"@octokit/types": "^13.8.0",
"@slack/types": "^2.14.0"
"@slack/types": "^2.14.0",
"ts-node": "^10.9.2"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ac8216

Please sign in to comment.