Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with GitHub Node.js package #225

Open
thyarles opened this issue Jan 6, 2023 · 0 comments
Open

Integrate with GitHub Node.js package #225

thyarles opened this issue Jan 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@thyarles
Copy link
Contributor

thyarles commented Jan 6, 2023

To get more useful information and drive best the cy-runner decisions, we need to take advantage of Octokit from GitHub.

Something like that.

import { Octokit } from '@octokit/rest'
export class GitHubInfo {  
  public ref: GithubRef
  public repo: GithubRepo
  public owner: GithubUser
  public sender: GithubUser
  public installation: string

  constructor({ ref, repo, owner, sender, installation }: any) {
    this.ref = ref
    this.repo = repo
    this.owner = owner
    this.sender = sender
    this.installation = installation
  }
}
@thyarles thyarles added the enhancement New feature or request label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant