See:
https://github.com/w3c/respec/pull/1334#issuecomment-318301008
Can add bit of magic, and allow linking back to pull request.
Can I work on this @marcoscaceres ?
Sure, but I can't recall exactly what would need to be done. Can you take a look at the referenced bug/discussion above and make a proposal here? Once we get agreement on what we should do, then we can code it up.
This is something which was initially wanted:
https://s3.amazonaws.com/pr-preview/rmisev/url/empty-host-for-file.html
Along with this:
This is our current isPreview :

Feel free to have a go at trying to put something together. I'm still not sure clear as to what configuration options need to be added, but maybe you can prototype something while I'm away.
@marcoscaceres I would like to take this issue up for the next week
@yatri1609 sounds great. When you can, take a look at
https://github.com/w3c/respec/pull/1334#issuecomment-318301008 ... as I can't recall the details. Suggestions on how to make things better are welcomed!
Sure I'll suggest what I can do on this and discuss here. @marcoscaceres
@marcoscaceres So I checked by clicking the preview so it does reverts back to this screen so we can just add to the title that This is a preview of the PR #xyz solving Issue #abc
What do you think?

If we can get both those bits of information, that would be amazing. Just having “this is a preview of pull request X” would be already be a big improvement.
Yeah, these are easy to get. And you can give the config file default values here: https://github.com/tobie/pr-preview/blob/master/lib/models/config.js#L36
Yeah I'll surely do that
@tobie As you said so just to clarify if I'm doing it right or wrong, I need to add .pr-preview.json file right with the params I need to pass, and define things out there? Am I doing it right or is it something that I have miissunderstood? Thanks
I’m not sure I understand your question. Some of that data is dynamic, so it can’t belong in pr-preview.json, further more you want something generic so not every spec has to be changed for this to work.
I got it now! Thanks
@yatri1609 if you see any other goodies from https://github.com/tobie/pr-preview we could use, please feel free to suggest improvements to the current text. If the params just get added to the URL, then we should be able to pick them up easily from the config object.
@tobie, thanks again for your guidance!
Now you should open a PR against PR Preview itself to get that data passed by default. Would be silly to request this from all config files.
Now you should open a PR against PR Preview itself to get that data passed by default. Would be silly to request this from all config files.
I didn't understand what are actually telling me to do.
I didn't understand what are actually telling me to do.
Send a PR to @tobie/pr-preview to edit config.js for respec.
We need to add those params (prNumber and prUrl) in defaults, so users don't have to explicitly specify them in their pr-preview.json files.
Ohk I got you! I thought that but then I again got confused!
Yeah, sorry for the terse comments. I’ve had little time dor this but wanted to make sure that this wasn’t forgotten.
Yeah, sorry for the terse comments. I’ve had little time dor this but wanted to make sure that this wasn’t forgotten.
No problem @tobie