kangwonlee / assignment_meta_template

Meta template for Github Classroom assignments
Other
0 stars 0 forks source link

Automate Copying of English Assignments to Separate Repository #8

Open kangwonlee opened 2 weeks ago

kangwonlee commented 2 weeks ago

Description:

This issue proposes automating the process of copying modified English-language assignments from the main (bilingual) repository to a dedicated English-only repository. This will streamline maintenance and ensure consistency between the two repositories. The initial concept for this automation was developed with the assistance of an AI language model.

Goals:

Proposed Implementation:

  1. Repository Setup:

    • Create a separate repository for English-only assignments.
    • Set up access credentials (e.g., SSH keys, deploy keys) to allow automated pushes to the English-only repository.
  2. Automation Script:

    • Write a Python script (copy_english_assignments.py) that performs the following:
      • Detects changes in English assignment files in the main repository.
      • Copies modified English files to the corresponding location in the English-only repository.
      • Commits and pushes the changes to the English-only repository.
  3. Git Hook Integration:

    • Create a post-commit Git hook in the main repository that triggers the Python script after each commit.

Action Items:

Additional Considerations:

Credits:

The initial concept for this automation was motivated by feedback and developed with the assistance of an AI language model.