admin管理员组

文章数量:1289910

I'm hoping someone can help me understand something, as I can't seem to find the answer I'm looking for.

I'm querying the Github GraphQL API to get the dependencyGraphManifests, eg:

query Repository {
    repository(name: "repo-name", owner: "my-") {
        name
        nameWithOwner
        dependencyGraphManifests(first: 100) {
            totalCount
            nodes {
                filename
                dependencies(first: 100) {
                    totalCount
                    nodes {
                        packageName
                        requirements
                        packageManager
                        repository {
                            latestRelease {
                                name
                                tagName
                            }
                        }
                    }
                    pageInfo {
                        endCursor
                        hasNextPage
                        hasPreviousPage
                        startCursor
                    }
                }
                id
            }
        }
        defaultBranchRef {
            name
            target {
                oid
            }
        }
    }
}

For our internal packages, for which the repos are hosted on Github Enterprise, we don't even get a repo object returned, eg:

    {
        "packageName": "cloud.google/go/pubsub",
        "requirements": "= 1.44.0",
        "packageManager": "GO",
        "repository": {
            "latestRelease": {
                "name": "spanner: v1.76.0",
                "tagName": "spanner/v1.76.0"
            }
        }
    },
    {
        "packageName": "github/my-/internal-package",
        "requirements": "= 1.9.2",
        "packageManager": "GO",
        "repository": null
    },

The actual package artifacts are stored in Google Artifact Register (GAR)

I wondering if anyone could help me figure out how I can make it so that the dependency graph will link to the a repo, so I can get the release versions available?

本文标签: gitGithub Dependency GraphStack Overflow