1
1
import { jsonCode } from '../../common/util/stringOperations' ;
2
2
import { Annotation } from '../annotations/versioning/AnnotationStoreV2' ;
3
3
4
- const baseURL = 'https://github.com/lars-reimann/api-editor' ;
4
+ const apiEditorBaseURL = 'https://github.com/Safe-DS/API-Editor' ;
5
+ const libraryAnalyzerBaseURL = 'https://github.com/Safe-DS/Library-Analyzer' ;
5
6
6
7
// Documentation
7
8
@@ -11,20 +12,21 @@ export const userGuideURL = `${documentationBaseURL}/gui`;
11
12
12
13
// Issues
13
14
14
- const issueBaseURL = `${ baseURL } /issues/new` ;
15
+ const apiEditorIssueBaseURL = `${ apiEditorBaseURL } /issues/new` ;
16
+ const libraryAnalyzerIssueBaseURL = `${ libraryAnalyzerBaseURL } /issues/new` ;
15
17
16
- export const bugReportURL = `${ issueBaseURL } ?assignees=&labels=bug&template=bug_report.yml` ;
17
- export const featureRequestURL = `${ issueBaseURL } ?assignees=&labels=enhancement&template=feature_request.yml` ;
18
+ export const bugReportURL = `${ apiEditorIssueBaseURL } ?assignees=&labels=bug&template=bug_report.yml` ;
19
+ export const featureRequestURL = `${ apiEditorIssueBaseURL } ?assignees=&labels=enhancement&template=feature_request.yml` ;
18
20
19
- const baseMissingAnnotationURL = `${ issueBaseURL } ?assignees=&labels=bug%2Cmissing+annotation&template=missing_annotation.yml` ;
21
+ const baseMissingAnnotationURL = `${ libraryAnalyzerIssueBaseURL } ?assignees=&labels=bug%2Cmissing+annotation&template=missing_annotation.yml` ;
20
22
21
23
export const missingAnnotationURL = function ( target : string ) : string {
22
24
const urlHash = encodeURIComponent ( `\`#/${ target } \`` ) ;
23
25
24
26
return baseMissingAnnotationURL + `&url-hash=${ urlHash } ` ;
25
27
} ;
26
28
27
- const baseWrongAnnotationURL = `${ issueBaseURL } ?assignees=&template=wrong_annotation.yml&labels=bug%2Cwrong+annotation%2C` ;
29
+ const baseWrongAnnotationURL = `${ libraryAnalyzerIssueBaseURL } ?assignees=&template=wrong_annotation.yml&labels=bug%2Cwrong+annotation%2C` ;
28
30
29
31
export const wrongAnnotationURL = function ( annotationType : string , annotation : Annotation ) : string {
30
32
const minimalAnnotation = {
0 commit comments