-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug: commenting on PRs from the previous release #21
Comments
Thinking about this more, |
that part looks good, we do the same in semantic-release: |
I really wanna move this into an octokit plugin that then can be used by both semantic-release and release-notifier, can’t wait to get to it |
For information we found other cases of false positive. In the case described in semantic-release/semantic-release#726 there was a comment on a PR that referenced some code. The search API when passed a commit sha would return:
So the search would return 2 results, the expected PR and one seemingly unrelated. I implemented a fix in semantic-release/github#59. In addition I added more filtering:
|
We don't do the same thing in semantic-release. Here it seems you use are finding the last GitHub releases and find the commits based on the date of the previous release with In semantic-release we use only tags to find the new commits since the last release. There is cases in Git in which the order of the commits in the history is not chronological. So I'm not sure using the commit date would be consistent. |
Example: electron/i18n#280 (comment)
I think the problem here may be that we're including commits from the previous release when searching:
release-notifier/index.js
Lines 48 to 53 in d817aed
@gr2m does that sound right? Maybe should be searching for
previousRelease.published_at
instead ofpreviousRelease.created_at
?The text was updated successfully, but these errors were encountered: