You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.info('Posting comment on pull request #%d.', self.pr_number)
118
144
iflen(contents) >65536:
119
-
log.error('Comment exceeds allowed size(65536)')
145
+
log.error(
146
+
'Comment exceeds the 65536 character limit (GitHub limitation). Reduce the number of files to be reported in the comment using "MAX_FILES_IN_COMMENT" and try again.'
147
+
)
120
148
raiseCannotPostComment
121
149
122
150
# Pull request review comments are comments made on a portion of the unified diff during a pull request review.
log.debug('Branch "%s/%s" is protected.', self.repository, self.annotations_data_branch)
156
193
raiseNotFound
157
194
exceptForbiddenasexc:
158
-
log.error('Forbidden access to branch "%s/%s".', self.repository, self.annotations_data_branch)
195
+
log.error(
196
+
'Insufficient permissions to write annotations to the branch "%s/%s". Please verify the token permissions and ensure it has content read and write access.',
197
+
self.repository,
198
+
self.annotations_data_branch,
199
+
)
159
200
raiseCannotGetBranchfromexc
160
201
exceptNotFoundasexc:
161
-
log.error('Branch "%s/%s" does not exist.', self.repository, self.annotations_data_branch)
202
+
log.error(
203
+
'Branch "%s/%s" either does not exist or is protected.', self.repository, self.annotations_data_branch
log.error('Forbidden access to branch "%s/%s".', self.repository, self.annotations_data_branch)
221
+
log.error(
222
+
'Insufficient permissions to write annotations to the branch "%s/%s". Please verify the token permissions and ensure it has content read and write access.',
log.error('Branch "%s/%s" does not exist.', self.repository, self.annotations_data_branch)
242
+
log.error(
243
+
'Branch "%s/%s" either does not exist or is protected.', self.repository, self.annotations_data_branch
244
+
)
196
245
raiseCannotGetBranchfromexc
197
246
exceptForbiddenasexc:
198
-
log.error('Forbidden access to branch "%s/%s".', self.repository, self.annotations_data_branch)
247
+
log.error(
248
+
'Insufficient permissions to write annotations to the branch "%s/%s". Please verify the token permissions and ensure it has content read and write access.',
249
+
self.repository,
250
+
self.annotations_data_branch,
251
+
)
199
252
raiseCannotGetBranchfromexc
200
253
exceptConflictasexc:
201
-
log.error('Conflict writing to branch "%s/%s".', self.repository, self.annotations_data_branch)
254
+
log.error(
255
+
'Conflict while adding #%s pull request annotation to branch "%s/%s".',
256
+
self.pr_number,
257
+
self.repository,
258
+
self.annotations_data_branch,
259
+
)
202
260
raiseCannotGetBranchfromexc
203
261
exceptValidationFailedasexc:
204
-
log.error('Validation failed on committer name or email.')
262
+
log.error(
263
+
'Validation failed for committer name or email, or the endpoint was spammed while writing annotation to branch "%s/%s".',
0 commit comments