Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit d6959eb

Browse files
authored
fix: issue URLs (#1296)
### Summary of Changes Report missing/wrong annotation in the [Library-Analyzer](https://github.com/Safe-DS/Library-Analyzer) repo instead.
1 parent b10c314 commit d6959eb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

api-editor/gui/src/features/externalLinks/urlBuilder.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { jsonCode } from '../../common/util/stringOperations';
22
import { Annotation } from '../annotations/versioning/AnnotationStoreV2';
33

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';
56

67
// Documentation
78

@@ -11,20 +12,21 @@ export const userGuideURL = `${documentationBaseURL}/gui`;
1112

1213
// Issues
1314

14-
const issueBaseURL = `${baseURL}/issues/new`;
15+
const apiEditorIssueBaseURL = `${apiEditorBaseURL}/issues/new`;
16+
const libraryAnalyzerIssueBaseURL = `${libraryAnalyzerBaseURL}/issues/new`;
1517

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`;
1820

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`;
2022

2123
export const missingAnnotationURL = function (target: string): string {
2224
const urlHash = encodeURIComponent(`\`#/${target}\``);
2325

2426
return baseMissingAnnotationURL + `&url-hash=${urlHash}`;
2527
};
2628

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`;
2830

2931
export const wrongAnnotationURL = function (annotationType: string, annotation: Annotation): string {
3032
const minimalAnnotation = {

0 commit comments

Comments
 (0)