Skip to content

Commit 1e97f0a

Browse files
authored
fix: fix update-to-latest (#329)
1 parent ec7104d commit 1e97f0a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

scripts/generate-changelog.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import path from 'node:path';
33

44
import simpleGit from 'simple-git';
55

6+
const __dirname = import.meta.dirname;
67
const maxCommitsInChangelog = 400;
78

89
let results = '';

scripts/update-to-latest.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ js_protocol_url="https://chromium.googlesource.com/v8/v8.git/+/${v8_revision}/in
3131

3232
if curl --output /dev/null --silent --head --fail "$browser_protocol_domains_url"; then
3333
# the 4th column is the file name in the folder (e.g., DOM.pdl).
34-
domains=$(curl --silent "${browser_protocol_domains_url}" | base64 --decode | grep .pdl | awk "{print $4}")
34+
domains=$(curl --silent "${browser_protocol_domains_url}" | base64 --decode | grep .pdl | awk "{print \$4}")
35+
mkdir -p pdl/domains
3536
for domain in $domains; do
3637
browser_protocol_domain_url="https://chromium.googlesource.com/chromium/src.git/+/${commit_sha}/third_party/blink/public/devtools_protocol/domains/$domain?format=TEXT"
3738
curl --silent "${browser_protocol_domain_url}" | base64 --decode > pdl/domains/$domain
@@ -56,11 +57,8 @@ git --no-pager diff
5657
if ! git diff --no-ext-diff --quiet --exit-code; then
5758
# dirty repo, ready to commit.
5859

59-
git config user.name 'DevTools Bot'
60-
git config user.email '[email protected]'
61-
6260
# commit so we can use the new commit in the changelog
63-
git commit --all -m "Roll protocol to r$commit_rev"
61+
git commit --all -m "Roll protocol to r$commit_rev" --author "DevTools Bot <[email protected]>"
6462

6563
# generate changelog
6664
cd "$protocol_repo_path/scripts" || exit 1

0 commit comments

Comments
 (0)