-
Notifications
You must be signed in to change notification settings - Fork 8
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
Change review apps PR workflow to leave only one comment #1804
Change review apps PR workflow to leave only one comment #1804
Conversation
790cabd
to
7d90641
Compare
7d90641
to
6f845d2
Compare
83b89df
to
a90f2f1
Compare
It's interesting that you thought of this too. Sarah and I thought about it as we built this and concluded "if it's needed it'll become evident". The failing deployment is a permissions issue I need to fix from the |
This script isn't quite working, evidenced by the (currently!) two comments in this thread. I ran the script through Shellcheck and it pointed out why
If you want an env var available in a JQ expression you should do.
Shellcheck says to use double quotes, but we generally avoid double quotes around JQ expressions because of the frequency with which we use double quotes in them. |
That's weird, it was working before 🤔 |
Looking at |
I was trying to use the special |
None at all. I wasn't aware that existed! |
a90f2f1
to
6a39b7b
Compare
|
🎉 A review copy of this PR has been deployed! You can reach it at https://pr-1804.review.forms.service.gov.uk/. It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For more details please see the review app wiki page |
@AP-Hunt fixed now (I was missing a newline) |
Nice one! I can see there's only one comments from the bot now. |
What problem does this pull request solve?
The way we work with GitHub in this repo means we need to rebase our PRs often; this on top of the usual back and forth when reviewing means that review apps might get deployed several times before a PR is merged. This is fine, except that every time the review apps are deployed there is a new comment left by the workflow, which is a bit noisy.
This PR changes the workflow to first delete any existing comments about review apps (similar to what our other sonarqube cloud bot does), so that there should only be one comment about review apps on a PR at a time, but it keeps its useful place in the timeline.
Things to consider when reviewing