Skip to content

Commit

Permalink
commit initial course.xml when running create_export_repo (#44)
Browse files Browse the repository at this point in the history
adds a commit message of the form `initial commit of course.xml with term "{run}"`
  • Loading branch information
pdpinch committed Aug 30, 2017
1 parent f40b424 commit f59e372
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions orcoursetrion/actions/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ def create_export_repo(course, term, description=None):
path=GITIGNORE_PATH,
contents=GITIGNORE_CONTENTS
)

# Add initial course.xml file
github.add_repo_file(
org=config.ORC_STUDIO_ORG,
repo=repo_name,
committer=COMMITTER,
message='initial commit of course.xml with term "{term}"'.format(term=term),
path="course.xml",
contents='<course url_name="{term}" org="MITx" course="{course}"/>\n'.format(term=term,course=course)
)

return repo

Expand Down

0 comments on commit f59e372

Please sign in to comment.