Changeset 45464 in webkit
- Timestamp:
- Jul 1, 2009 10:13:41 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r45455 r45464 1 2009-07-01 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Maciej Stachowiak. 4 5 prepare-ChangeLog should have a --bug= argument and use it for url autofill 6 https://bugs.webkit.org/show_bug.cgi?id=26383 7 8 prepare-ChangeLog now knows how to grab the bug title from bugs.webkit.org 9 I also added a bit more template text in an effort to get better ChangeLogs 10 from casual contributers. 11 12 * Scripts/prepare-ChangeLog: 13 1 14 2009-07-01 Eric Seidel <eric@webkit.org> 2 15 -
trunk/WebKitTools/Scripts/prepare-ChangeLog
r45455 r45464 97 97 my $changeLogTimeZone = "PST8PDT"; 98 98 99 my $bugNumber; 99 100 my $name; 100 101 my $emailAddress; … … 108 109 my $parseOptionsResult = 109 110 GetOptions("diff|d!" => \$spewDiff, 111 "bug:i" => \$bugNumber, 110 112 "name:s" => \$name, 111 113 "email:s" => \$emailAddress, … … 245 247 print STDERR " Change author: $name <$emailAddress>.\n"; 246 248 249 my $bugDescription; 250 my $bugURL; 251 if ($bugNumber) { 252 $bugURL = "https://bugs.webkit.org/show_bug.cgi?id=$bugNumber"; 253 my $bugXMLURL = "$bugURL&ctype=xml"; 254 # Perl has no built in XML processing, so we'll fetch and parse with curl and grep 255 my $descriptionLine = `curl --silent "$bugXMLURL" | grep short_desc`; 256 $descriptionLine =~ /<short_desc>(.*)<\/short_desc>/; 257 $bugDescription = $1; 258 print STDERR " Description from bug $bugNumber:\n \"$bugDescription\".\n"; 259 } 260 247 261 # Remove trailing parenthesized notes from user name (bit of hack). 248 262 $name =~ s/\(.*?\)\s*$//g; … … 321 335 print CHANGE_LOG normalizeLineEndings($description . "\n", $endl) if $description; 322 336 337 $bugDescription = "SHORT DESCRIPTION/BUG TITLE GOES HERE (OOPS!)" unless $bugDescription; 338 print CHANGE_LOG normalizeLineEndings(" $bugDescription\n", $endl); 339 340 $bugURL = "BUG URL GOES HERE (pass --bug= to autofill)" unless $bugURL; 341 print CHANGE_LOG normalizeLineEndings(" $bugURL\n\n", $endl); 342 343 # We could pre-populate this with the git commit log or with the bug description. 344 print CHANGE_LOG normalizeLineEndings(" DETAILED DESCRIPTION OF THE CHANGES GOES HERE. (OOPS!) SEE:\n", $endl); 345 print CHANGE_LOG normalizeLineEndings(" http://webkit.org/coding/contributing.html FOR MORE INFORMATION\n\n", $endl); 346 323 347 if ($prefix =~ m/WebCore/ || `pwd` =~ m/WebCore/) { 324 348 if ($didChangeRegressionTests) { 325 349 print CHANGE_LOG normalizeLineEndings(testListForChangeLog(sort @addedRegressionTests), $endl); 326 350 } else { 327 print CHANGE_LOG normalizeLineEndings(" WARNING: NO TEST CASES ADDED OR CHANGED\n\n", $endl);351 print CHANGE_LOG normalizeLineEndings(" LIST OF TESTS, OR EXPLANATION WHY TESTING IS IMPOSSIBLE GOES HERE (OOPS!)\n\n", $endl); 328 352 } 329 353 }
Note: See TracChangeset
for help on using the changeset viewer.