hashicorp / terraform-github-actions

Terraform GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bot is not commenting locked PRs

alexbde opened this issue · comments

Doing some exploratory testing I stumbled upon this situation: github-actions bot normally comments with output of terraform plan. When I lock the PR there are no more comments. I know this is what locking is for but a bot should be able to reply IMHO.

Is this behaviour intended? Or limited by GitHub API? Then I'll file an issue at GitHub Actions.

Example: Between locking and unlocking PR in the image below it did terraform plan action, so I'd expected a comment just like the other ones.

Image

Is this behaviour intended? Or limited by GitHub API? Then I'll file an issue at GitHub Actions.

I believe this is intended behavior. Once the conversation is locked, only collaborators can continue to leave comments. I'm assuming the GITHUB_TOKEN that the GitHub Actions bot uses is not seen as a collaborator and thus cannot comment once the conversation is locked.

All this project does is use the GITHUB_TOKEN as detailed here to authenticate and submit a comment via the GitHub API.

Okay, I'll discuss it at GitHub Community.