Files
InfiniteAPI/.github/workflows/pr-comment.yml
Claude 4bd3c768a5 fix: GitHub Actions workflows now use GITHUB_TOKEN for dependencies
Fixed 4 failing workflow checks:

1. **Build/Lint/Test workflows**: Fixed yarn install authentication
   - Changed Git URL rewrite to include GITHUB_TOKEN in all rewrites
   - Added GITHUB_TOKEN and GIT_TERMINAL_PROMPT env vars to yarn install step
   - Now correctly handles github: dependencies (like libsignal)

2. **PR Comment workflow**: Fixed missing token error
   - Changed from secrets.PERSONAL_TOKEN to secrets.GITHUB_TOKEN
   - Workflow now has proper authentication

Root cause: Yarn 4.x was trying to clone github: dependencies via SSH,
but CI had no SSH keys. Git config now rewrites ALL GitHub URLs to
HTTPS with token authentication.

https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
2026-02-14 04:58:34 +00:00

54 lines
1.6 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: PR Comment
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- unlocked
jobs:
pr-comment:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message-id: pr-test
message: |
Thanks for opening this pull request and contributing to the project!
The next step is for the maintainers to review your changes. If everything looks good, it will be approved and merged into the main branch.
In the meantime, anyone in the community is encouraged to test this pull request and provide feedback.
### ✅ How to confirm it works
If youve tested this PR, please comment below with:
```
Tested and working ✅
```
This helps us speed up the review and merge process.
### 📦 To test this PR locally:
```
# NPM
npm install @whiskeysockets/baileys@${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}
# Yarn (v2+)
yarn add @whiskeysockets/baileys@${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}
# PNPM
pnpm add @whiskeysockets/baileys@${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}
```
If you encounter any issues or have feedback, feel free to comment as well.