A plugin that auto saves the course OLX to git when an author publishes it
Project description
Installation
For detailed installation instructions, please refer to the plugin installation guide.
Installation required in:
Studio (CMS)
Configuration
Enable the following FEATURES flags in the config file in Open edX. For any release after Juniper, that config file is /edx/etc/cms.yml. If you’re using private.py, you will need to enable these FEATURES in cms/envs/private.py.
"FEATURES": { "ENABLE_EXPORT_GIT": true, "ENABLE_AUTO_GITHUB_REPO_CREATION": true # Optional, to auto create github repo for new courses } # Set when ENABLE_AUTO_GITHUB_REPO_CREATION is true GITHUB_ORG_API_URL = "https://api.github.com/orgs/<GITHUB_ORG_NAME>" # For GitHub Enterprise, change the URL accordingly GITHUB_ACCESS_TOKEN = "<GITHUB_PERSONAL_ACCESS_TOKEN>" # Token must have 'repo - Full control of private repositories' permissionSet your commit user in cms/envs/common.py, if you don’t want to use the default one
GIT_EXPORT_DEFAULT_IDENT = { 'name': 'STUDIO_EXPORT_TO_GIT', 'email': 'STUDIO_EXPORT_TO_GIT@example.com' }Restart the server using make studio-restart on Devstack or tutor dev/local restart openedx on Tutor.
For Tutor installations, these values can also be managed through a custom tutor plugin.
Setup github authentication for plugin
If you’re testing from a docker machine running devstack setup github authentication for plugin, you’ll need to generate SSH keys in that machine and add them to your Github account (https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ - https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account)
Studio/CMS UI settings
Open studio admin at /admin/ol_openedx_git_auto_export/coursegitrepository/
Add your course_id and in the GIT URL, add your OLX git repo. For example git@github.com:<GITHUB_USERNAME>/edx4edxlite.git.
- Make a change to the course content and publish.
When using Tutor, attach with the CMS container using tutor dev/local start cms and enter yes to the prompt to add the GitHub to known hosts.
You should see a new commit in your OLX repo.
Commit user should be the one that published the change.
If user is not available, it should be the default one set in GIT_EXPORT_DEFAULT_IDENT.
Test commit count increase on your OLX repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ol_openedx_git_auto_export-0.7.1.tar.gz.
File metadata
- Download URL: ol_openedx_git_auto_export-0.7.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43fb82c71cced69d34225fd9df946d34d24b321399b8dee577022e5b9396d01
|
|
| MD5 |
653b38001bca3be9887f241403925fc8
|
|
| BLAKE2b-256 |
236f361cd49810a7dc4a241754a473c01e3f8aed928d8ad3ab6f69b86be0ba8b
|
File details
Details for the file ol_openedx_git_auto_export-0.7.1-py3-none-any.whl.
File metadata
- Download URL: ol_openedx_git_auto_export-0.7.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8f4164b5f092e9f8f3e62d6ec6ee02bd4cce2ceff98d365a1715f39e34899d
|
|
| MD5 |
f56c6f57cf922b6adcbf3aab02443ffb
|
|
| BLAKE2b-256 |
8a6f1e177a71fdc77399c0eee8f2715deb5bb077303a75c28d8061e024fbaa34
|