Skip to content

Only react to the re-review phrase when changes were requested - #713

Open
muhammad-a-dev wants to merge 1 commit into
python:mainfrom
muhammad-a-dev:stage-ignore-trigger-without-requested-changes
Open

muhammad-a-dev wants to merge 1 commit into
python:mainfrom
muhammad-a-dev:stage-ignore-trigger-without-requested-changes

Conversation

@muhammad-a-dev

Copy link
Copy Markdown

Closes #687.

Right now the bot answers "I have made the requested changes; please review again" on any PR, even when nobody requested changes. On python/cpython#144604 it replied three times, moved the PR to "awaiting change review" and pinged nobody.

This makes new_comment() skip the trigger unless the PR has the "awaiting changes" label, which matches the flow in the README (only "Awaiting changes" moves to "Awaiting change review").

Added a test for the no-changes-requested case and updated the existing trigger tests to start from "awaiting changes". Full test suite passes locally with 100% coverage.

@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (510e32f) to head (5f659fc).

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #713   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2173      2181    +8     
  Branches       100       101    +1     
=========================================
+ Hits          2173      2181    +8     
Flag Coverage Δ
Python_3.10.21 ?
Python_3.10.22 100.00% <100.00%> (?)
Python_3.11.16 ?
Python_3.11.17 100.00% <100.00%> (?)
Python_3.12.14 ?
Python_3.12.15 100.00% <100.00%> (?)
Python_3.13.15 ?
Python_3.13.16 100.00% <100.00%> (?)
Python_3.14.7 ?
Python_3.14.8 100.00% <100.00%> (?)
Python_3.15.0 100.00% <100.00%> (?)
Python_3.15.0-rc.2 ?

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

Files with missing lines Coverage Δ
bedevere/stage.py 100.00% <100.00%> (ø)
tests/test_stage.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

Bedevere responds to "I have made ... review again" comments even if no changes were requested

1 participant