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

gh-556: Fix over-reaching PR-edited event handler #557

Merged
merged 3 commits into from
May 10, 2023

Conversation

itamaro
Copy link
Contributor

@itamaro itamaro commented May 6, 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

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
@itamaro itamaro marked this pull request as ready for review May 6, 2023 18:33
@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #557 (36af63b) into main (0f350ce) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #557   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2069      2083   +14     
  Branches       234       234           
=========================================
+ Hits          2069      2083   +14     
Flag Coverage Δ
Python_3.10.11 100.00% <100.00%> (ø)
Python_3.11.3 100.00% <100.00%> (ø)
Python_3.8.16 100.00% <100.00%> (ø)
Python_3.9.16 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bedevere/stage.py 100.00% <100.00%> (ø)
tests/test_stage.py 100.00% <100.00%> (ø)

bedevere/stage.py Outdated Show resolved Hide resolved
bedevere/stage.py Outdated Show resolved Hide resolved
@itamaro itamaro requested a review from ezio-melotti May 6, 2023 21:49
@JelleZijlstra JelleZijlstra merged commit c320c05 into python:main May 10, 2023
@itamaro itamaro deleted the gh-556 branch May 10, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming issues/PRs incorrectly changes awaiting change review and awaiting merge to awaiting review
3 participants