Skip to content

Do not fail backport if commenting fails - #11637

Closed
MichalStrehovsky wants to merge 1 commit into
mainfrom
MichalStrehovsky-patch-1
Closed

MichalStrehovsky wants to merge 1 commit into
mainfrom
MichalStrehovsky-patch-1

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
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

akoeplinger commented Nov 15, 2022 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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