Skip to content
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

How to limit comments to only once? #3

Open
mosherc opened this issue Dec 1, 2021 · 1 comment
Open

How to limit comments to only once? #3

mosherc opened this issue Dec 1, 2021 · 1 comment

Comments

@mosherc
Copy link

mosherc commented Dec 1, 2021

I would like to add our netlify build links to our tasks, which works and I can do this, but sometimes someone might forget to add the Asana link to the PR description, so in order to accommodate this scenario, I am using the edited pull_request event. This however triggers the comment to be added every time the developer changes the description, whether they are adding a new unrelated note, or changing the asana task link, or whatever else. Is there any way to limit this? Maybe to once per PR? Maybe only when the asana task URL changes between job runs? Ideally everyone remembers to add the link so opened would work, but I don't think it will (sometimes I forget to add the link at first).

@mosherc
Copy link
Author

mosherc commented Dec 2, 2021

I ended up using a regex action to determine if the newly edited body includes an asana link while the old one does not. Not perfect but it will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant