diff --git a/django/library/github.py b/django/library/github.py index a84505187..ef05bc0db 100644 --- a/django/library/github.py +++ b/django/library/github.py @@ -239,6 +239,7 @@ def _create_org_repo(self): org = github.get_organization(settings.GITHUB_MODEL_LIBRARY_ORG_NAME) repo = org.create_repo( name=self.repo_name, + description=f"Mirror of {self.codebase.get_absolute_url()}", private=self.debug, ) return repo diff --git a/django/library/jinja2/library/cc_license_change.jinja b/django/library/jinja2/library/cc-license-change.jinja similarity index 100% rename from django/library/jinja2/library/cc_license_change.jinja rename to django/library/jinja2/library/cc-license-change.jinja diff --git a/django/library/jinja2/library/github-integration-overview.jinja b/django/library/jinja2/library/github-integration-overview.jinja new file mode 100644 index 000000000..7facb8daf --- /dev/null +++ b/django/library/jinja2/library/github-integration-overview.jinja @@ -0,0 +1,234 @@ +{% extends "base.jinja" %} + +{% block introduction %} +
+ Mirroring transforms your model into a git repository and archives it on GitHub under the + + {{ github_model_library_org_name }} organization. +
++ Get started by clicking the + Mirror on GitHub button on + one of your models. +
++ Syncing will allow you to develop your model on GitHub and have any new releases + pulled back into the CoMSES Model Library. + +
++ Start from either a model on CoMSES or an existing GitHub repository. +
+
+ {% if not user.is_authenticated %}
+ We will use a connected Github account or your profile information to sign commits.
+ You can
+ connect
+ your Github account by editing your profile if you want it to appear as the author
+ of the
+ commits.
+ {% elif user.member_profile.github_username %}
+ Since you have a connected Github account, we will use it to sign commits:
+ {{ user.member_profile.github_username }} <{{ user.member_profile.github_username }}@users.noreply.github.com>
+ {% else %}
+ Since you do not have a github account connected we will use your profile
+ information:
+ {{ user.member_profile.name }} <{{ user.email }}>
+ {% endif %}
+
codemeta.json
,
+ LICENSE
,
+ and CITATION.cff
files.
+