Skip to content

Github packages API #179

Description

@hjaved-nha

Hi,

I'm using github-script in github actions to access packages api github.packages.getPackageVersionForOrganization but getting the following error

Cannot read property 'getPackageVersionForOrganization' of undefined

Is it possible to access the packages api via github-script or am I doing something wrong ?

Kind Regards.

Activity

  1. joshmgross commented on Sep 24, 2021

    @joshmgross
    Contributor

    👋 Hey @hjaved-nha,

    I've just released https://github.com/actions/github-script/releases/tag/v5.0.0 which includes the latest version of Octokit with this API.

    Note you'll need to update your script to use github.rest.packages.getPackageVersionForOrganization due to changes in Octokit, see https://github.com/actions/github-script#breaking-changes-in-v5.

    Feel free to reopen this issue if you're still seeing issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions