Skip to content

Commit

Permalink
fix: fixed gitlab issues url (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine de Choudens <a.dechoudens@lysoft.ch>
  • Loading branch information
adechoudens and adechoud authored Oct 17, 2023
1 parent 7b07552 commit 7a2eb00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Optional<GitLabIssue> getIssue(final String projectName, final Integer ma
e);
}
final Integer projectId = project.getId();
final String httpUrl = project.getHttpUrl();
final String httpUrl = project.getWebUrl();
try {
if (this.issues == null) {
this.issues = this.getAllIssues(this.hostUrl, this.apiToken, projectId);
Expand All @@ -53,7 +53,7 @@ public Optional<GitLabIssue> getIssue(final String projectName, final Integer ma

private GitLabIssue createGitLabIssue(final String projectUrl, final GitlabIssue candidate) {
final String title = candidate.getTitle();
final String link = projectUrl + "/issues/" + candidate.getIid();
final String link = projectUrl + "/-/issues/" + candidate.getIid();
final List<String> labels = new ArrayList<>();
for (final String l : candidate.getLabels()) {
labels.add(l);
Expand Down

0 comments on commit 7a2eb00

Please # to comment.