diff --git a/models/project.go b/models/project.go index f7f325c..5aff527 100644 --- a/models/project.go +++ b/models/project.go @@ -1,22 +1,24 @@ // SPDX-FileCopyrightText: 2017-2020 Harald Sitter // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL package models // Project is the core model of a project entity. type Project struct { // TODO v2 omitempty I18n I18nData `yaml:"i18n" json:"i18n"` // With the migration to invent projectpath became useless. It's the legacy // path for awkward reasons. Instead publish the real on disk path and // expose the legacy path under a different name. PathOnDisk string `yaml:"-" json:"path"` // TODO v2 throw away hopefully (depends on metadata getting better replacement + // Used by: + // - kde-org-applications-extractor (needed to map to ci-tooling data) PathInMetadata string `yaml:"projectpath" json:"__do_not_use-legacy-projectpath,omitempty"` Repo string `yaml:"repopath" json:"repo"` // TODO v2 throw away hopefully (depends on metadata getting better replacement) Active bool `yaml:"repoactive" json:"-"` // do not marshal to json, we presently have no use case for it Identifier string `yaml:"identifier" json:"identifier"` // also marshal'd via I18nData }