Renaming github repo

richard schneider's Avatar

richard schneider

29 Nov, 2018 11:14 PM

I've renamed my Github repo from https://github.com/richardschneider/net-ipfs-api to https://github.com/richardschneider/net-ipfs-http-client and updated my AppVeyor settings. AppVeyor now detects pushes and runs!

However, the AppVeyor URL for the project is still .https://ci.appveyor.com/project/richardschneider/net-ipfs-api and not https://ci.appveyor.com/project/richardschneider/net-ipfs-http-client

Could the project slug be updated in your database?

PS: thanks for a great service!!!!

  1. Support Staff 1 Posted by Ilya Finkelshte... on 30 Nov, 2018 05:59 PM

    Ilya Finkelshteyn's Avatar

    Hi Richard,

    While we still not exposed it in UI, API is available to change the slug. Please check this sample.

    Ilya.

  2. 2 Posted by richard schneid... on 30 Nov, 2018 08:21 PM

    richard schneider's Avatar

    I tried the script and got this error:

    Invoke-RestMethod : {"message":"Project not found or access denied."}
    
    I got the API_TOKEN from https://ci.appveyor.com/api-keys

    Here's script with the API_TOKEN protected.

    $env:API_URL = "https://ci.appveyor.com/api" # replace for AppVeyor Enterprise
    $env:API_TOKEN = "v2.XXX" # from https://ci.appveyor.com/api-token
    $env:APPVEYOR_ACCOUNT_NAME = "richardschneider" # from AppVeyor project URL
    $env:APPVEYOR_PROJECT_SLUG_OLD = "net-ipfs-api"  # from AppVeyor project URL
    $env:APPVEYOR_PROJECT_SLUG_NEW = "net-ipfs-http-client"  # Desired slug


    $headers = @{ "Authorization" = "Bearer $env:API_TOKEN" "Content-type" = "application/json" }


    $s = Invoke-RestMethod -Uri "$env:API_URL/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG_OLD/settings" -Headers $headers -Method Get $s.settings.slug = $env:APPVEYOR_PROJECT_SLUG_NEW Invoke-RestMethod -Uri "$env:API_URL/projects" -Headers $headers -Body ($s.settings | ConvertTo-Json -Depth 10) -Method Put

    Again, thank you for your help.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 30 Nov, 2018 10:14 PM

    Ilya Finkelshteyn's Avatar

    Please check that you selected API token for "all accounts" or correct one.

  4. 4 Posted by Richard Schneid... on 30 Nov, 2018 10:36 PM

    Richard Schneider's Avatar

    Doh! Get the api token from my account name, NOT "All accounts" work.

    Again thanks for your time.

  5. Ilya Finkelshteyn closed this discussion on 05 Dec, 2018 12:49 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac