Merged
Conversation
Contributor
itamaro
commented
May 1, 2023
- if opened PR is draft - don't add labels
- if draft PR is published - add labels as a new non-draft PR
- if a PR is unpublished - clear labels
Member
|
Thank you! |
Codecov Report
@@ Coverage Diff @@
## main #555 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 2030 2069 +39
Branches 231 234 +3
=========================================
+ Hits 2030 2069 +39
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
Author
Sure! What's the correct way to mock an existing PR with labels and assert they get deleted? |
Member
|
We would test that there is an API call for removing the labels from PR. |
Contributor
Author
|
updated the PR - is this what you meant? (asserting on |
Mariatta
reviewed
May 2, 2023
itamaro
added a commit
to itamaro/bedevere
that referenced
this pull request
May 6, 2023
pythongh-555 introduced the PR edited handler to handle draft PRs. The implementation was over-reaching, and triggered on any edited events (including renaming PR). This PR fixes that by removing the PR-edited handler and replacing it with two more specific handlers that more narrowly match the original intent, namely, respond to changes in the draft state of the PR (publish / unpublish). Fixes pythongh-556
JelleZijlstra
pushed a commit
that referenced
this pull request
May 10, 2023
gh-555 introduced the PR edited handler to handle draft PRs. The implementation was over-reaching, and triggered on any edited events (including renaming PR). This PR fixes that by removing the PR-edited handler and replacing it with two more specific handlers that more narrowly match the original intent, namely, respond to changes in the draft state of the PR (publish / unpublish). Fixes gh-556
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.