Commit Graph

91 Commits

Author SHA1 Message Date
Claude 1fa321c0a2 fix(ci): correct Yarn 4 cache paths and add auto-merge for version PRs
- Fixed cache paths for Yarn 4 (node_modules + .yarn/install-state.gz)
- Updated all workflows to use actions/cache@v4
- Added auto-merge for WhatsApp version update PRs

https://claude.ai/code/session_01QPt4WssG6jjEciQKdVpFtK
2026-02-02 18:20:03 +00:00
Claude 16699781c7 fix(ci): add GITHUB_TOKEN authentication for git operations
Yarn 4 converts HTTPS URLs to SSH internally. Added token-based
authentication using GITHUB_TOKEN to allow accessing public GitHub
repositories without SSH keys.

https://claude.ai/code/session_01QPt4WssG6jjEciQKdVpFtK
2026-02-02 17:47:08 +00:00
Claude 72c49352a3 fix(ci): configure git to use HTTPS for GitHub dependencies
Fixes "Permission denied (publickey)" error when Yarn tries to fetch
libsignal dependency via SSH in GitHub Actions.

Added git config to force HTTPS instead of SSH for all GitHub URLs
in all workflows that run yarn install.

https://claude.ai/code/session_01QPt4WssG6jjEciQKdVpFtK
2026-02-02 16:45:41 +00:00
Claude 46ffaf027c fix: address PR review comments
Fixes from code review:

1. Fix #1,6: Use connection.update event instead of overriding sock.end()
   - Listens for 'close' event to cleanup interval
   - Handles both explicit close and internal disconnections

2. Fix #3: Exit code 2 when fetch fails (not 0)
   - Allows CI to distinguish success/error/fetch-failed
   - Properly signals fetch failures to workflows

3. Fix #4: Document revision bounds + add env vars
   - Added detailed comments explaining min/max revision values
   - Made configurable via WA_MIN_REVISION/WA_MAX_REVISION env vars

4. Fix #5,9: Remove unused fetchLatestVersion option
   - Removed from SocketConfig and defaults
   - Updated versionCheckIntervalMs docs to clarify it's only for makeWASocketAutoVersion

5. Fix #7: Use separate variable for version tracking
   - trackedVersion instead of mutating mergedConfig
   - Prevents unexpected side effects

6. Fix #8: Check socket state before emitting events
   - isSocketClosed flag to prevent race conditions
   - Double-check after async operations

7. Fix #10: Implement force parameter in workflow
   - Creates PR even without version changes when force=true
   - Useful for re-triggering updates manually

Note: Test coverage (Fix #2) deferred to separate PR due to
ESM mocking complexity with Jest.
2026-01-21 17:21:49 +00:00
Claude b9a7c2cabc feat: improve version update robustness and frequency
Changes:
- Update frequency: weekly → daily (06:00 UTC)
- Add retry with exponential backoff (3 attempts per source)
- Add multiple source endpoints (sw.js + bootstrap page)
- Add version validation (sanity checks on revision numbers)
- Add fetch timeout to prevent hanging
- Add detailed logging for debugging
- Simplify workflow to only update baileys-version.json

This makes the version update more reliable and responsive
to WhatsApp Web changes.
2026-01-21 16:22:46 +00:00
João Lucas de Oliveira Lopes d4ef73aca5 feat: implement automated WhatsApp version update workflow and related scripts (#2130)
* feat: implement automated WhatsApp version update workflow and related scripts

* change cron to weekly

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2026-01-18 01:07:05 +02:00
Rajeh Taher cfca468df2 Update README.md 2025-12-10 23:00:26 +02:00
Rajeh Taher 4e9600396b readme: typo
Removed mention of discount for multiple hours in support section.
2025-12-10 22:39:31 +02:00
Rajeh Taher 1afb0a9af6 readme: updates 2025-12-10 22:37:48 +02:00
Rajeh Taher a3950dfb7e funding: add vinikjkkj to GitHub Sponsors list 2025-11-19 17:15:31 +02:00
Rajeh Taher 0c22abb1df readmes: remove survey message 2025-11-19 16:47:53 +02:00
Rajeh Taher b558d67851 Revise breaking change notice in README 2025-09-09 00:45:54 +03:00
Rajeh Taher b53ef17ba0 caution for upcoming release 2025-09-07 22:47:31 +03:00
Rajeh Taher 9e04cce8d3 .github: Update GitHub sponsors list 2025-08-31 21:08:43 +03:00
Rajeh Taher 0716469dd6 readme: Remove shield images
Removed shield images for NPM downloads, GitHub code size, and Discord.
2025-08-31 05:27:23 +03:00
Rajeh Taher 0feded6c9e readme: improve English grammar 2025-08-31 05:15:03 +03:00
Rajeh Taher 27bc0bb313 readme: Add user survey and update guide warnings 2025-08-31 05:11:22 +03:00
Rajeh Taher fb08f3cadd readme: update where to reach the old guide 2025-08-19 16:28:28 +03:00
Rajeh Taher feb8a50065 readme: update NPM badge 2025-08-19 16:25:22 +03:00
Rajeh Taher 6e2c52e1ab readme: Update discord ljnk 2025-08-19 16:24:01 +03:00
vini 162ebe1cc2 ci: build workflow (#1681) 2025-08-07 01:52:56 +03:00
João Lucas de Oliveira Lopes 812e53e4eb Refactor: Fix Event Buffer Deadlock with State Machine (#1633)
* feat: implement state machine for chat synchronization and buffer management

* test: Add Jest configuration and tests for connection deadlock handling

- Created a Jest configuration file to set up testing environment.
- Implemented utility functions for creating isolated authentication sessions and mocking WebSocket connections.
- Added a test case to ensure that the connection does not deadlock when history sync is disabled, verifying the correct handling of message events.

* feat: add GitHub Actions workflow for running tests

* chore: sort import lint

* fix: implement timeout handling for AwaitingInitialSync state in chat socket, maybe fix memory leak

* feat: enhance chat synchronization by refining AwaitingInitialSync handling and adding history sync checks
2025-08-07 01:15:41 +03:00
Rajeh Taher 06c7ba0a0d github actions: update all actions 2025-07-18 23:20:24 +03:00
DevAstro 7bf06ed3f5 Add PNPM install command to PR comment workflow (#1549)
Included a PNPM add command alongside npm and yarn in the PR comment workflow to support projects using PNPM for dependency management.
2025-06-24 17:54:01 -03:00
Rajeh Taher 7cdb9660e9 Create README.md 2025-05-28 11:20:47 +03:00
Cassio Santos a9637cd515 Update stale.yml 2025-05-16 08:09:22 -03:00
Cassio Santos b5316165ac Update stale.yml 2025-05-15 13:50:05 -03:00
canove 3f976f9543 chore: fix stale workflow 2025-05-14 07:59:12 -03:00
canove a1fc396aad chore: fix stale workflow 2025-05-14 07:53:40 -03:00
Rajeh Taher b41a6a1694 github: remove docs generation workflow 2025-03-18 00:58:24 +02:00
Rajeh Taher 39508ecf50 chore(master): Update other workflows to Node 20 (current LTS) 2024-07-27 17:22:40 +03:00
Rajeh Taher 703933f44c fix(master): update linting workflow to node 20 (current LTS) 2024-07-27 17:17:28 +03:00
Rajeh Taher f25f83656a fix(master): Deploy docs to custom CNAME (baileys.whiskeysockets.io) 2024-06-17 13:52:11 +03:00
Rajeh Taher 2ef59bf924 fix(master): nightly builds 2024-04-29 10:48:45 +03:00
Rajeh Taher eb5edddf2f fix(master): final workflow fix 2024-04-28 12:22:37 +00:00
Rajeh Taher 649dee41eb fix(master): fix whiskeysockets publishing 2024-04-28 12:08:50 +00:00
Rajeh Taher 098908d05b feat(fix-workflow): push to the 2 npm packages at the same time (#746) 2024-04-28 14:39:04 +03:00
ShellTear 3663316d91 Update FUNDING.yml 2024-03-19 22:15:02 +02:00
ShellTear 17852d5f33 Update FUNDING.yml 2024-01-21 02:01:35 +02:00
Rajeh Taher 57d339de98 chore: fix release workflow 2024-01-19 20:06:42 +02:00
Rajeh Taher 05751dc953 fix yml syntax 2024-01-19 19:04:33 +02:00
Rajeh Taher b5e5239c94 fix: quick test to diagnose working dir issue 2024-01-19 19:03:38 +02:00
Rajeh Taher 962af99aba chore: fix manual release action 2024-01-19 18:56:00 +02:00
Rajeh Taher f527c1247c Create FUNDING.yml - include maintainer GH Sponsors 2023-12-23 06:01:17 +02:00
Codeboss 3d5eb0e078 Update config.yml 2023-08-09 23:54:43 +03:00
Edgard e875f75e76 ci: Updated workflow to update src/Defaults/baileys-version.json file 2023-06-07 11:18:06 -03:00
Edgard Lorraine Messias 45ce344326 ci: Use personal token instead of GITHUB_TOKEN 2023-05-22 17:36:06 -03:00
Edgard Lorraine Messias d69bdcfc17 ci: Fix pr-comment.yml 2023-05-22 17:27:20 -03:00
Edgard Lorraine Messias d0bd9ed327 ci: Use secrets.GITHUB_TOKEN 2023-05-22 17:14:20 -03:00
Edgard Lorraine Messias ee8d2bf175 ci: Fixed permission for pr-comment 2023-05-22 17:07:45 -03:00