Skip to content

Octokit initialization using personal userAgent #38

@lampajr

Description

@lampajr

From the code I see that the Octokit constructor is invoked using personal userAgent.

function createOctokitInstance(token) {
  return token
    ? new Octokit({
        auth: `token ${token}`,
        userAgent: "ginxo/chain-status"
      })
    : new Octokit({
        userAgent: "ginxo/chain-status"
      });
}

I suggest to add this as cli/gha argument since as the Octokit doc recommend we should set it to the application using it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions