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
Issues not being closed when the comment is not in the main commit on push #178
Comments
Thanks for the feedback. Those are two areas that I would like to improve going forward as they are admittedly not perfect. Issues not being closed This is still somewhat experimental. If the issue to be closed appears in the diff file, it should be closed. This is the line that should be retrieving the diff file: Line 84 in 5fa8522
If you can check the diff url and see if the issue closed is marked as a deletion, that would be a helpful starting point. Duplication of issues The action does initially retrieve issues that it has previously created to try and avoid creating them again: Line 139 in 5fa8522
Whether this works is predicated on (1) the issue already existing from a prior action run, and (2) the issue having the Line 97 in 5fa8522
The issue title would also need to be the same. If one of those conditions isn't satisfied then it won't appear in the existing issues list, and it could be created again under certain circumstances. I would need to try and get to the bottom of what is happening there, but this isn't a failproof system at best and could do with improvement. By the way, I'd use the |
@alstr I have checked one of my recent commit diff urls (got the sha's from the actions log). There is one issue found (the issue # is not logged) but the diff shows below. There indeed was an issue but it was not automatically closed, I have to close it by hand. |
That means that it's trying to close the issue but the GitHub API call is failing for some reason. I've just run a test and issue closing worked for me, so it's not a problem with the API itself. It could be permissions related but if you can create issues then that doesn't seem likely. Could you try the comment on a line of its own (creating and closing a new issue) and see if there's any change? Comments on the end of a line might not work reliably yet. The data might be malformed. |
I have been using this action for a while now and am very pleased with how it works, but am running into some minor things I can't seem to solve.
Action config:
The text was updated successfully, but these errors were encountered: