From 586e91b3a11d797edbc30897a721bdac201a7567 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 16 Feb 2024 15:03:47 +0100 Subject: [PATCH] feat(model): Introduce GitHub model --- docs/models/github/github.types.yaml | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/models/github/github.types.yaml diff --git a/docs/models/github/github.types.yaml b/docs/models/github/github.types.yaml new file mode 100644 index 000000000..e277a8fad --- /dev/null +++ b/docs/models/github/github.types.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright 2023-2024 The Enola Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# yaml-language-server: $schema=../enola/schemas/Types.schema.json + +# TODO Automatically build this from https://github.com/github/rest-api-description ?! + +types: + - name: enola.dev/github/repo + properties: + org: + repo: + homepage: + link: https://github.com/{org}/{repo} + + - name: enola.dev/github/issue + properties: + org: + repo: + issue: + ui: + link: https://github.com/{org}/{repo}/issues/{issue} + + - name: enola.dev/github/pull + properties: + org: + repo: + pr: + ui: + link: https://github.com/{org}/{repo}/pull/{pr}