Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use open instead of opened for pull request label

Oliver Günthera7e6f80d01d9
diff --git a/modules/github_integration/frontend/module/pull-request/pull-request-state.component.sass b/modules/github_integration/frontend/module/pull-request/pull-request-state.component.sass
index 67c3b10a970..73ded9aedc2 100644
--- a/modules/github_integration/frontend/module/pull-request/pull-request-state.component.sass
+++ b/modules/github_integration/frontend/module/pull-request/pull-request-state.component.sass
@@ -41,7 +41,7 @@
padding: 0 10px
font-size: 0.75rem
- &_opened
+ &_opened, &_open
background-color: #28a745
&_merged
diff --git a/modules/github_integration/frontend/module/pull-request/pull-request.component.ts b/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
index b6dca4e4604..cfaa782077e 100644
--- a/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
+++ b/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
@@ -69,7 +69,7 @@ export class PullRequestComponent {
get state():string {
if (this.pullRequest.state === 'open') {
- return (this.pullRequest.draft ? 'draft' : 'opened');
+ return (this.pullRequest.draft ? 'draft' : 'open');
}
return (this.pullRequest.merged ? 'merged' : 'closed');
}