Skip to content

Made it so dismissed approvals don't block the autosubmit bot.#5025

Merged
auto-submit[bot] merged 7 commits into
flutter:mainfrom
gaaclarke:dismiss-approval
Apr 28, 2026
Merged

Made it so dismissed approvals don't block the autosubmit bot.#5025
auto-submit[bot] merged 7 commits into
flutter:mainfrom
gaaclarke:dismiss-approval

Conversation

@gaaclarke

Copy link
Copy Markdown
Member

fixes flutter/flutter#185224

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gaaclarke gaaclarke added the CICD Run CI/CD label Apr 18, 2026
@gaaclarke gaaclarke requested review from b-luk and jtmcdole April 18, 2026 00:41
Comment thread auto_submit/lib/validations/approval.dart
@b-luk

b-luk commented Apr 20, 2026

Copy link
Copy Markdown

Also, not directly related to this change, but I notice that the UI lets me dismiss a REQUESTED_CHANGES review:
image

Does this mean that a REQUESTED_CHANGES review doesn't actually block an author from submitting, because they can always just dismiss that review? So REQUESTED_CHANGES is more of a suggestion than something that is enforceed?

Or is this UI something most people don't have, and I just see it because I have elevated permissions?

@gaaclarke

Copy link
Copy Markdown
Member Author

Does this mean that a REQUESTED_CHANGES review doesn't actually block an author from submitting, because they can always just dismiss that review? So REQUESTED_CHANGES is more of a suggestion than something that is enforceed?

The requirement is that you have approval, not that there is no requests changes. Dismissing requests changes should be used respectfully obviously.

@gaaclarke gaaclarke requested a review from b-luk April 21, 2026 16:57

@b-luk b-luk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I have no experience with this code or with how it works. So please also get approval from someone else who is more familiar with this.

Comment thread auto_submit/lib/validations/approval.dart
expect(result.result, isTrue);
});

test('COMMENTED review should NOT clear previous CHANGES_REQUESTED', () async {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is testing an impossible scenario, because our graphql query won't return a COMMENTED review. Maybe we can remove this test because it can be misleading.

@gaaclarke

Copy link
Copy Markdown
Member Author

friendly ping @jtmcdole

Comment thread auto_submit/lib/validations/approval.dart
@gaaclarke

Copy link
Copy Markdown
Member Author

I tried merging main because ci.yaml validation was stuck. Now things that were passing are failing. I think cocoon ci is sick.

@jtmcdole jtmcdole added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App. and removed CICD Run CI/CD labels Apr 28, 2026
@auto-submit auto-submit Bot merged commit b375de7 into flutter:main Apr 28, 2026
19 checks passed
@jtmcdole

Copy link
Copy Markdown
Member

I tried merging main because ci.yaml validation was stuck. Now things that were passing are failing. I think cocoon ci is sick.

I suspect GitHub was sick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autosubmit blocks merging on stale "request changes" pr

3 participants