-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix duplication of docs issues #8747
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8747 +/- ##
=======================================
Coverage 86.65% 86.65%
=======================================
Files 176 176
Lines 25772 25772
=======================================
Hits 22332 22332
Misses 3440 3440
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If GitHub passes in these two events in order that:
- Triggers the
labeled
if/else branch - Triggers the
closed
if/else branch,
then two docs issues will be created?
Can we change this logic to check for a docs issue instead, and only create one if it doesn't exist?
We can't because we don't know what the issue is. The main action flow is:
So that takes care of most cases where this is a problem. The reason it generated 2 issues on a PR was because we merged the PR and immediately added a backport label. It triggered this twice (for both closed and labeled) and they ran so close together that neither left the comment before the other checked for a comment. This fix would prevent the This fix doesn't solve for the case of someone merging a PR and specifically adding the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, LGTM!
* fix duplication of docs issues * update conditional to only run on merged PRs
resolves #8746
Problem
Workflow has double generated issues in the other repo
Solution
Ensure the label added in the labeled event is
user docs
and only run if that's true or the PR is in a merged state with the correct label.Checklist