forked from serious-scaffold/ss-python
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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. (#96)
- Loading branch information
Showing
11 changed files
with
65 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.
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.
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_type == 'github.com' -%] | ||
{{ repo_url() }} | ||
[%- elif repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' -%] | ||
{{ repo_url() }}/- | ||
[%- endif %] | ||
[%- endmacro %] | ||
|
||
[% macro ci_badge() -%] | ||
[% if repo_host_type == 'github.com' -%] | ||
[![CI Status](https://{{ repo_url() }}/actions/workflows/ci.yml/badge.svg?branch=main)](https://{{ repo_url() }}/actions/workflows/ci.yml) | ||
[%- elif repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' -%] | ||
[![pipeline status](https://{{ repo_url() }}/badges/main/pipeline.svg)](https://{{ repo_base_url() }}/commits/main) | ||
[%- endif %] | ||
[%- endmacro %] | ||
|
||
[% macro license_badge() -%] | ||
[% if repo_host_type == 'github.com' -%] | ||
[![GitHub](https://img.shields.io/github/license/{{ repo_namespace }}/{{ repo_name }})] | ||
[%- elif repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' -%] | ||
[![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