Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues list not imported in student repos #2

Open
ghost opened this issue Feb 14, 2019 · 2 comments
Open

Issues list not imported in student repos #2

ghost opened this issue Feb 14, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2019

I added the app to both my personal account and to the organization, and then created a new assignment. I logged in to a different account and succefully accepted the assignment, however the issues were not brought across to the student repo. I installed the app using Marketplace rather than from the github repo.

@chadfawcett
Copy link
Owner

chadfawcett commented Feb 15, 2019

Hmm, it looks like the app is trying to copy issues from the student account back to the student account. I had made the assumption that GitHub Classroom would be importing the student repos as the students, so I would have their username. Turns out this isn't the case and your username is the one making the requests from Classroom.

I can work on fixing this, but in the meantime you can fix this with some manual configuration. Note, I looked at the CISatUH organization and didn't see any "starter" repos so you might have to do this anyways. The instructions for the configuration are in the README but I will go into a bit more details below.

Currently the app will get a notification from GitHub saying that your organization created a student repo (ex CISatUH/debugging-redo-chadfawcett). It then needs to determine the name of the starter repo (the one that has the issues you want copied). It does this by replacing the student name chadfawcett with starter, this results in it thinking the starter repo is named CISatUH/debugging-redo-starter. Note: this last step is where the bug is, as it's trying to replace klancasterprof with starter for all the students repos which obviously doesn't work.

Fortunately since not everyone is going to name their starter repos like <assignment-prefix>-starter I added the ability to manually configure the name of the starter repo. As described in the link above, you can add the following file (.github/config.yml) to your starter repo which should make things work.

issues:
  # this doesn't have to follow any particular pattern
  # it could even be something like assignment1-master-repo
  starterName: debugging-redo-master

Let me know if that works or not.

@dowobeha
Copy link

This is not working for me, even when providing the starterName in .github/config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants