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

Do not fail backport if commenting fails #11637

Closed
wants to merge 1 commit into from

Conversation

MichalStrehovsky
Copy link
Member

When trying to backport an old PR where github already locked the conversation, the commenting step will fail. It's an odd reason to fail backport.

Example of a failed backport: https://github.com/dotnet/runtime/actions/runs/3468792216

When trying to backport and old PR where github already locked conversation, the commenting will fail. It's an odd reason to fail backport.
@akoeplinger
Copy link
Member

akoeplinger commented Nov 15, 2022

While this would work the bot would still not be able to comment when failures/conflicts happen later on. I wonder if we should instead try to unlock the issue as a first step (it should be a no-op afaik if the issue is already open). I'll try whether the GH Actions has enough permissions to do that.

@akoeplinger
Copy link
Member

Looks like it was even easier since we have access to the event payload that tells us whether a PR is locked. See #11639

@MichalStrehovsky
Copy link
Member Author

closing in favor of #11639.

@MichalStrehovsky MichalStrehovsky deleted the MichalStrehovsky-patch-1 branch November 16, 2022 00:36
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.

2 participants