Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20978

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

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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"
      }'

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              0298b2749e0b Mateus T
              Votes:
              9 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: