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

MODELDB CI: GitHub synergy #47

Open
2 of 3 tasks
alexsavulescu opened this issue Jul 5, 2022 · 1 comment
Open
2 of 3 tasks

MODELDB CI: GitHub synergy #47

alexsavulescu opened this issue Jul 5, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@alexsavulescu
Copy link
Member

alexsavulescu commented Jul 5, 2022

We are relying on the ModelDB API to downloads models. However we would be able to leverage better the GH API if models were synced between GH and MDB. What is needed?

@alexsavulescu alexsavulescu added the question Further information is requested label Jul 5, 2022
@alexsavulescu
Copy link
Member Author

alexsavulescu commented Aug 31, 2022

Been playing a bit with the GitHub CLI. Some notes:

  • we could add topics to models, i.e.
    gh repo edit ModelDBRepository/194897 --add-topic "neuron"
    
  • then getting a list of NEURON models:
    gh repo list modeldbrepository --topic "neuron" --json name -L 2000
    
  • It would be convenient to create releases and then we would download with:
    gh release download -R ModelDBRepository/266775 --archive=zip
    
    or simply
    https://github.com/ModelDBRepository/266775/archive/refs/heads/master.zip
    
  • getting PRs for ModelDBRepository
    gh repo list ModelDBRepository --json pullRequests --json url -L2000 | jq -r '.[] | select(.pullRequests.totalCount > 0)' | grep url
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Hackathon projects ideas
Development

No branches or pull requests

2 participants