-
Notifications
You must be signed in to change notification settings - Fork 35
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
update find-comment string #52
Comments
+1, this actually broke all existing usage of the action An easy fix would be to update the template:
to
I just made this change on our team's GH action. However, a better fix would probably be to make the monorepo support changes from #44 a manual opt-in? |
Hi @Entkenntnis and @jzxhuang! We're working on a new release with an updated workflow that no longer relies on the comment string which should be more reliable. In the meantime, you have two options (in order of preference):
If you've adjusted your A future version will migrate to using sticky-pull-request-comment, which will no longer require that we manually embed an identifier into the comment. You can upgrade right now by replacing the Find, Create, and Update steps with the following: - name: Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: next-touched-pages
message: ${{ steps.get-comment-body.outputs.body }} |
@dstaley awesome, thanks for the quick update! I didn't realize adding the dep would also affect what the GH action pulled, but I guess that makes a lot of sense. Maybe consider adding a short blurb to the README recommending folks to pin the version of the script as part of the installation steps? 🤷 The sticky-pull-request-comment action looks dope :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Shouldn't this be done directly in https://github.com/hashicorp/nextjs-bundle-analysis/blob/main/template.yml? If people copy it (like we did), it's really easy to miss that it opts you into breaking changes. I would suggest to change the template to use a fixed version, and then bump it up manually as you do new releases. |
@gaearon We're discussing internally which of the two approaches we want to default to, and knowing why you preferred one over the other would be helpful! Would you mind sharing what motivated you to go with this approach in lieu of adding For some context, pinning the version in the workflow file as option 2 describes circumvents dependency analysis tools like Dependabot and However, option one is not without its drawbacks, the most significant of which is a user potentially missing the |
Is there any update on this? |
#44 has changed the comment string to include the repo name.
This is currently breaking the find-comment action in the workflow.
The text was updated successfully, but these errors were encountered: