Skip to content

Edge case: draft PR marked as S-waiting-on-author receives S-waiting-on-review on undraft in addition instead of flip #2102

@jieyouxu

Description

@jieyouxu

Summary

Un-drafting a PR should cause existing S-waiting-on-author label to be replaced by S-waiting-on-review and not have both co-exist.

Example: rust-lang/rust#142357

Repro steps

  • Open non-draft PR (no S-waiting-on-* labels by default)
  • @rustbot author -> PR receives S-waiting-on-author
  • Mark PR as draft
  • Undraft PR -> PR receives S-waiting-on-review but S-waiting-on-author isn't removed.

Current behavior

Both S-waiting-on-{author,review} labels are present.

Expected behavior

Only one of S-waiting-on-{author,review} labels are present; should become S-waiting-on-review on un-draft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions