-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add comment to PR with preview link #87
Conversation
Sadly, the version of the workflow run in the PR is the one in main, not in this PR, so I'm not sure we can test it without merging. |
This is weird. Can you check if the comment is created for a PR coming from a branch from this repository (not from a fork?). AFAIR the surge-action already does all the work, so if we're using it I don't think it needs extra steps |
I agree that the docs show pictures of comments, which makes it look like the action does everything. In https://github.com/quarkusio/quarkusio.github.io/blob/develop/.github/workflows/preview.yml we have to add the comments manually, but we're not using the action, just a Unfortunately, I don't think I have permissions to do a PR from a branch of this repo. I agree it's a good experiment to try. Oh wait, I think I see the issue. The docs have this:
I'll try adding that instead. |
873cd26
to
f38dac5
Compare
Let's see how that goes |
Argh, thanks for the merge - but I think we're not there yet. :(
I checked back through the other builds of the earlier version of this PR, and it's the same message. So I don't even know what the permissions flag does. More work needed, since most PRs will be from forks. |
I don't think so, as members of the |
Oh, that would help! I just did a quick survey of the recent PRs to check.
So the first one I checked was from a fork, but all the others were from the main repo. I guess it's just Peter and I who hadn't got the memo. And my change didn't really do anything. :) Scrolling down further I can find a few others from forks, like #63 and #64, but not so many. So I guess that's ok. |
(Another of way of checking, I guess, is to see that we have 31 forks of this repo, and 89 PRs. So if every fork did exactly one PR, that would be a third of the PRs originating from a fork ... but some of those forks probably didn't originate any PRs.) |
I wonder if splitting the CI preview as proposed in #44 would help |
I think so. The main quarkus docs site, and extensions.quarkus.io, have previews from forks, using a similar technique, I think. While I was reading the surge docs I also noticed that we should be able to have just one surge workflow. If we trigger on both open and close, and set |
I noticed we're not adding comments to PRs, even though we do the hard work of making a preview.