-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further integration with GitLab/GitHub.
- Loading branch information
Showing
11 changed files
with
63 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[% macro repo_url() -%] | ||
{{ repo_host }}/{{ repo_namespace }}/{{ repo_name }} | ||
[%- endmacro %] | ||
|
||
[% macro repo_base_url() -%] | ||
[% if repo_host_choice == 'github' -%] | ||
{{ repo_url() }} | ||
[%- else -%] {# Base url for GitLab and self-managed GitLab #} | ||
{{ repo_url() }}/- | ||
[%- endif %] | ||
[%- endmacro %] | ||
|
||
[% macro ci_badge() -%] | ||
[% if repo_host_choice == 'github' -%] | ||
[![CI Status](https://{{ repo_url() }}/actions/workflows/ci.yml/badge.svg?branch=main)](https://{{ repo_url() }}/actions/workflows/ci.yml) | ||
[%- elif repo_host_choice == 'gitlab' -%] | ||
[![pipeline status](https://{{ repo_url() }}/badges/main/pipeline.svg)](https://{{ repo_base_url() }}/commits/main) | ||
[%- endif %] | ||
[%- endmacro %] | ||
|
||
[% macro license_badge() -%] | ||
[% if repo_host_choice == 'github' -%] | ||
[![GitHub](https://img.shields.io/github/license/{{ repo_namespace }}/{{ repo_name }})] | ||
[%- elif repo_host_choice == 'gitlab' -%] | ||
[![GitLab](https://img.shields.io/gitlab/license/{{ repo_namespace }}/{{ repo_name }}?gitlab_url=https%3A%2F%2F{{ repo_host() }})] | ||
[%- endif -%] | ||
(https://{{ repo_base_url() }}/blob/main/LICENSE) | ||
[%- endmacro %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters