We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeeb40a commit 8b0e6c2Copy full SHA for 8b0e6c2
src/api/app/models/workflow_run.rb
@@ -83,12 +83,12 @@ def update_as_failed(message)
83
# "Failed to report back to GitHub: Unauthorized request. Please check your credentials again."
84
# "Failed to report back to GitHub: Request is forbidden."
85
86
- if fail? && (
+ if fail? && (
87
message.include?('Unauthorized request') ||
88
/Request (is )?forbidden/.match?(message)
89
- )
+ )
90
token&.update(enabled: false)
91
- end
+ end
92
end
93
94
# Stores debug info to help figure out what went wrong when trying to save a Status in the SCM.
0 commit comments