Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d0e78ef619435010cd969e67eee1655e992bb3f7
https://github.com/WebKit/WebKit/commit/d0e78ef619435010cd969e67eee1655e992bb3f7
Author: Ryan Haddad <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M Tools/WebKitBot/src/WebKitBot.mjs
Log Message:
-----------
[webkit-bot] Support the --issue flag and handle errors when reverting with
git-webkit
https://bugs.webkit.org/show_bug.cgi?id=318275
rdar://181067423
Reviewed by Aakash Jain.
Credit goes to Brianna Fan for the first draft of these changes.
The most important changes are adding support for the --issue flag (so a
revert can reuse an existing Bugzilla bug) and handling git-webkit errors
and merge conflicts. There are also a handful of smaller fixes. All of the
git-webkit revert behavior remains gated behind the USE_GIT_WEBKIT_REVERT
environment variable.
* Tools/WebKitBot/src/WebKitBot.mjs:
- buildGitWebkitRevertCommand: New shared helper for building git-webkit revert
args.
- extractTextIfMentioned: Strip Slack auto-linked URLs.
- postMessage: New wrapper to disable link unfurling on all messages.
- revertCommand / revertWithPRCommand: Support bug URLs as the --issue
argument; handle
merge conflicts (list files, mention the created bug) and already-reverted
errors.
- dryRevertCommand: Support bug URLs as the --issue argument; preview the
git-webkit
command when the feature flag is enabled.
- generateRevertingPatchWithGitWebkit: Switch from execFileAsync to spawn for
real-time output.
- execInWebKitDirectorySimple: Fix locale warnings by passing PATH, HOME,
LC_ALL, LANG.
- cleanUpWorkingCopy: Clean up leftover branches.
Canonical link: https://commits.webkit.org/316565@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications