The response.text
quick accessor only works when the response contains a valid Part
, but none was returned. Check the candidate.safety_ratings
to see if the response was blocked.
#69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manage awaiting user response | |
on: | |
issue_comment: | |
types: [created] | |
pull_request_review_comment: | |
types: [created] | |
jobs: | |
remove_label: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.issue.labels.*.name, 'status: awaiting user response')" | |
steps: | |
- uses: actions-ecosystem/action-remove-labels@v1 | |
with: | |
labels: "status: awaiting user response" |