Repository navigation
Commit 338e8d5
committed
Make the hackbot UI's address a setting
The apply-side Slack handler had it as a module constant, which was fine while
it was the only thing linking to a run page. It is about to stop being: the
Slack receiver links to one too, when it tells a clicker where the run their
click collapsed onto already is.
A second copy of a hardcoded host is the kind of thing that stays consistent
right up until it does not, so this makes it `settings.hackbot_ui_url` before
there is a second copy rather than after.
Unlike `hackbot_api_url` next to it, this address is never called, only linked,
so the deployed UI is the right default even when running locally: a local link
would be dead for whoever reads the message it lands in.1 parent 6221eba commit 338e8d5
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments