Ability to add README's and .gitignore files in the repo creation through 2.0 API

XMLWordPrintable

    • 3

      Currently, it is not possible to specify if you want your newly created repository to have a template readme or .gitignore file upon creation.

      It would be great if this could be passed along the JSON for repo creations, such as:

      $ Curl -X POST -u <username>:<apppassword> "https://api.bitbucket.org/2.0/repositories/<workspace/<repo_slug>" 
      -H "Content-Type: application/json" -d 
      '{
          "scm": "git",
          "project": {
              "key": "MP"
          },
          "language": "html/css",
          "gitignore_type": "template",
          "readme_type": "template"
      }'

            Assignee:
            Unassigned
            Reporter:
            Mateus T
            Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: