OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 var rollbot = rollbot || {}; | 26 var rollbot = rollbot || {}; |
27 | 27 |
28 (function() { | 28 (function() { |
29 | 29 |
30 // FIXME: This will need to change once we have a real account for the rollbot. | 30 // FIXME: This will need to change once we have a real account for the rollbot. |
31 var rollBotAccount = "eseidel@chromium.org"; | 31 var rollBotAccount = "eseidel@chromium.org"; |
32 var issueSearchURL = config.kRietveldURL + "/search?" + $.param({ | 32 var issueSearchURL = config.kRietveldURL + "/search?" + base.queryParam({ |
33 "owner": rollBotAccount, | 33 "owner": rollBotAccount, |
34 "closed": 3, // Only open issues. | 34 "closed": 3, // Only open issues. |
35 "with_messages": "true", | 35 "with_messages": "true", |
36 "format": "json", | 36 "format": "json", |
37 }); | 37 }); |
38 | 38 |
39 var rollSubjectRegexp = /Blink roll (\d+):(\d+)/; | 39 var rollSubjectRegexp = /Blink roll (\d+):(\d+)/; |
40 | 40 |
41 function findRollIssue(results) { | 41 function findRollIssue(results) { |
42 results = results['results']; | 42 results = results['results']; |
(...skipping 25 matching lines...) Expand all Loading... |
68 'fromRevision': subjectMatch[1], | 68 'fromRevision': subjectMatch[1], |
69 'toRevision': subjectMatch[2], | 69 'toRevision': subjectMatch[2], |
70 }; | 70 }; |
71 }); | 71 }); |
72 }; | 72 }; |
73 | 73 |
74 // Exposed for unittesting. | 74 // Exposed for unittesting. |
75 rollbot._isRollbotStopped = isRollbotStopped; | 75 rollbot._isRollbotStopped = isRollbotStopped; |
76 | 76 |
77 })(); | 77 })(); |
OLD | NEW |