Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

matiasurbieta
Copy link

Describe the pull request

Adds support to command line creation of repository. This is useful for user and repos creation in bulk.
Link to the issue: #5697

Checklist

  • [ x] I agree to follow the Code of Conduct by submitting this pull request.
  • [ x] I have read and acknowledge the Contributing guide.
  • [ x] I have added test cases to cover the new code or have provided the test plan.

Test plan

  • Make sure a user is available in database. If not, use:

./gogs admin create-user --name=user3 --password=mypassword --email=user3@user.com --admin=false

  • Run the following sentence in command line:
    ./gogs admin create-repository --username=user3 --repository_name=repo

Expected to get the repository created.

  • Re-run the repository creation and should get a duplication error.
  • Run the repository creation for an invalid user and must get an error No user was found with ...

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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.