Workflows: support CR variable substitution

Bug: twpowertools:91
Change-Id: Ib973bef40bed42d9c75f15710fd2ac3eeb6b9b15
diff --git a/src/contentScripts/communityConsole/workflows/runner.js b/src/contentScripts/communityConsole/workflows/runner.js
index 2e90b19..d181d46 100644
--- a/src/contentScripts/communityConsole/workflows/runner.js
+++ b/src/contentScripts/communityConsole/workflows/runner.js
@@ -2,6 +2,7 @@
 import * as pb from '../../../workflows/proto/main_pb.js';
 
 import CRRunner from './actionRunners/replyWithCR.js';
+import Thread from './models/thread.js';
 
 export default class WorkflowRunner {
   constructor(workflow, updateCallback) {
@@ -32,7 +33,7 @@
       const url = recursiveParentElement(checkbox, 'EC-THREAD-SUMMARY')
                       .querySelector('a.header-content')
                       .href;
-      const thread = parseUrl(url);
+      const thread = Thread.fromUrl(url);
       if (!thread) {
         console.error('Couldn\'t parse URL ' + url);
         continue;