GithubHelp home page GithubHelp logo

Comments (9)

KrauseFx avatar KrauseFx commented on August 26, 2024

Agreed, that would be awesome. However is there a GitHub API to get the URL to the latest release?

from fixcode.

cbowns avatar cbowns commented on August 26, 2024

On https://github.com/neonichu/FixCode/releases , there's the magic URL https://github.com/neonichu/FixCode/releases/latest which evals to https://github.com/neonichu/FixCode/releases/tag/0.2.0 via a 302.

from fixcode.

neonichu avatar neonichu commented on August 26, 2024

Probably would make sense to add that as a feature to fastlane's install_xcode_plugin action.

from fixcode.

KrauseFx avatar KrauseFx commented on August 26, 2024

Yes please! * inserts obligatory 👍 *

from fixcode.

cbowns avatar cbowns commented on August 26, 2024

curling the latest release with the GitHub API:

% curl https://api.github.com/repos/neonichu/FixCode/releases/latest

{
  "url": "https://api.github.com/repos/neonichu/FixCode/releases/2605664",
  "assets_url": "https://api.github.com/repos/neonichu/FixCode/releases/2605664/assets",
  "upload_url": "https://uploads.github.com/repos/neonichu/FixCode/releases/2605664/assets{?name,label}",
  "html_url": "https://github.com/neonichu/FixCode/releases/tag/0.3.0",
  "id": 2605664,
  "tag_name": "0.3.0",
  "target_commitish": "master",
  "name": "FixCode 0.3.0",
  "draft": false,
  "author": {
    "login": "neonichu",
    "id": 118992,
    "avatar_url": "https://avatars.githubusercontent.com/u/118992?v=3",
    "gravatar_id": "",
    "url": "https://api.github.com/users/neonichu",
    "html_url": "https://github.com/neonichu",
    "followers_url": "https://api.github.com/users/neonichu/followers",
    "following_url": "https://api.github.com/users/neonichu/following{/other_user}",
    "gists_url": "https://api.github.com/users/neonichu/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/neonichu/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/neonichu/subscriptions",
    "organizations_url": "https://api.github.com/users/neonichu/orgs",
    "repos_url": "https://api.github.com/users/neonichu/repos",
    "events_url": "https://api.github.com/users/neonichu/events{/privacy}",
    "received_events_url": "https://api.github.com/users/neonichu/received_events",
    "type": "User",
    "site_admin": false
  },
  "prerelease": false,
  "created_at": "2016-02-12T20:25:30Z",
  "published_at": "2016-02-12T20:42:54Z",
  "assets": [
    {
      "url": "https://api.github.com/repos/neonichu/FixCode/releases/assets/1306248",
      "id": 1306248,
      "name": "FixCode.xcplugin.zip",
      "label": null,
      "uploader": {
        "login": "neonichu",
        "id": 118992,
        "avatar_url": "https://avatars.githubusercontent.com/u/118992?v=3",
        "gravatar_id": "",
        "url": "https://api.github.com/users/neonichu",
        "html_url": "https://github.com/neonichu",
        "followers_url": "https://api.github.com/users/neonichu/followers",
        "following_url": "https://api.github.com/users/neonichu/following{/other_user}",
        "gists_url": "https://api.github.com/users/neonichu/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/neonichu/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/neonichu/subscriptions",
        "organizations_url": "https://api.github.com/users/neonichu/orgs",
        "repos_url": "https://api.github.com/users/neonichu/repos",
        "events_url": "https://api.github.com/users/neonichu/events{/privacy}",
        "received_events_url": "https://api.github.com/users/neonichu/received_events",
        "type": "User",
        "site_admin": false
      },
      "content_type": "application/zip",
      "state": "uploaded",
      "size": 47478,
      "download_count": 347,
      "created_at": "2016-02-12T20:43:15Z",
      "updated_at": "2016-02-12T20:43:17Z",
      "browser_download_url": "https://github.com/neonichu/FixCode/releases/download/0.3.0/FixCode.xcplugin.zip"
    }
  ],
  "tarball_url": "https://api.github.com/repos/neonichu/FixCode/tarball/0.3.0",
  "zipball_url": "https://api.github.com/repos/neonichu/FixCode/zipball/0.3.0",
  "body": "Bugfixes and performance improvements :trollface: \r\n\r\nThanks for using FixCode! To make our Xcode plugin better for you, we bring updates every 2 weeks."
}

The JSON path assets/browser_download_url is what we want: "browser_download_url": "https://github.com/neonichu/FixCode/releases/download/0.3.0/FixCode.xcplugin.zip"

from fixcode.

neonichu avatar neonichu commented on August 26, 2024

This has been implemented in fastlane/fastlane#4911

from fixcode.

neonichu avatar neonichu commented on August 26, 2024

Thanks a lot for the suggestion @cbowns 🎉

from fixcode.

KrauseFx avatar KrauseFx commented on August 26, 2024

Yeah 🚀

from fixcode.

cbowns avatar cbowns commented on August 26, 2024

🤘

from fixcode.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.