[Question] Am I using abandonUnwantedPullRequests Correctly #1440
-
I wanted to post this here first before opening a issue in case I was missing something. My team is hoping to use the ADOS extension parameter 'abandonUnwantedPullRequests' to cleanup/abandon PRs that are not needed or is a older duplicate of a new existing PR. In the case where the PR sits to be reviewed due to other priorities. However, we've found that the parameter hasn't been cleaning up conflicting dependencies like the example below. Currently each of repo has a .NET source and test project so I'm wondering if that would be a problem with the following known issue 451. Am I missing something here, or does abandonUnwantedPullRequests not cover my example below? Currently using V1 Extension (Using V2 will require approval of Org) Example: Yaml Task
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Short answer: Yes. It sounds like you are describing the Technically, this could be fixed in V1, but it would require overriding a chunk of the dependabot-core code, so I have personally avoided it in favor of finishing the implementation of V2, which is much easier to handle this scenario in. |
Beta Was this translation helpful? Give feedback.
Short answer: Yes.
It sounds like you are describing the
"Superseded by {new_pull_request_id}"
scenario, which Task V1 does not handle correctly unfortunately. Task V2 does handle this better in that it will actually abandon the PR in this scenario, but it currently uses the incorrect reason message"Looks like the dependencies have changed"
instead of "superseded"; this will be fixed in the future though.Technically, this could be fixed in V1, but it would require overriding a chunk of the dependabot-core code, so I have personally avoided it in favor of finishing the implementation of V2, which is much easier to handle this scenario in.