Skip to content

Commit e0aea22

Browse files
committed
Update names for consistency
1 parent 96bea81 commit e0aea22

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/reporter/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const CONTRIBUTION_TOOL_URL = 'https://contribute.opentermsarchive.org/en/servic
1010
const DOC_URL = 'https://docs.opentermsarchive.org';
1111

1212
const ERROR_MESSAGE_TO_ISSUE_LABELS_MAP = {
13-
'has no match': [ LABELS.PAGE_STRUCTURE_CHANGE.name, LABELS.NEEDS_INTERVENTION.name ],
14-
'HTTP code 404': [ LABELS.PAGE_NOT_FOUND.name, LABELS.NEEDS_INTERVENTION.name ],
13+
'has no match': [ LABELS.DOCUMENT_STRUCTURE_CHANGE.name, LABELS.NEEDS_INTERVENTION.name ],
14+
'HTTP code 404': [ LABELS.DOCUMENT_NOT_FOUND.name, LABELS.NEEDS_INTERVENTION.name ],
1515
'HTTP code 403': [LABELS.HTTP_403.name],
1616
'HTTP code 429': [LABELS.HTTP_429.name],
1717
'HTTP code 500': [LABELS.HTTP_500.name],
1818
'HTTP code 502': [LABELS.HTTP_502.name],
1919
'HTTP code 503': [LABELS.HTTP_503.name],
20-
'Timed out after': [LABELS.PAGE_LOAD_TIMEOUT.name],
20+
'Timed out after': [LABELS.DOCUMENT_LOAD_TIMEOUT.name],
2121
EAI_AGAIN: [LABELS.DNS_LOOKUP_FAILURE.name],
2222
ENOTFOUND: [LABELS.DNS_RESOLUTION_FAILURE.name],
2323
'Response is empty': [LABELS.EMPTY_RESPONSE.name],

src/reporter/labels.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const LABELS = {
5858
color: 'FFFFFF',
5959
description: 'Fetching failed because of too many redirects',
6060
},
61-
PAGE_LOAD_TIMEOUT: {
61+
DOCUMENT_LOAD_TIMEOUT: {
6262
name: 'document load timed out',
6363
color: 'FFFFFF',
6464
description: 'Fetching failed with a timeout error',
@@ -73,12 +73,12 @@ export const LABELS = {
7373
color: 'FFFFFF',
7474
description: 'Fetching failed for an undetermined reason that needs investigation',
7575
},
76-
PAGE_STRUCTURE_CHANGE: {
76+
DOCUMENT_STRUCTURE_CHANGE: {
7777
name: 'document structure changed',
7878
color: 'FFFFFF',
7979
description: 'Extraction selectors are outdated',
8080
},
81-
PAGE_NOT_FOUND: {
81+
DOCUMENT_NOT_FOUND: {
8282
name: 'document not found',
8383
color: 'FFFFFF',
8484
description: 'Fetch location is outdated',

0 commit comments

Comments
 (0)