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

Handle composer.json file not existing #2

Open
cs278 opened this issue Apr 17, 2024 · 0 comments
Open

Handle composer.json file not existing #2

cs278 opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cs278
Copy link
Owner

cs278 commented Apr 17, 2024

When adding a new composer.json file the diff fails as the file does not exist on the base branch, likewise the same would happen if the file were to be removed.

const base = this.octokit.rest.repos.getContent({
owner: owner,
repo: repo,
path: path,
ref: baseRef,
mediaType: {
format: "raw",
},
});
const head = this.octokit.rest.repos.getContent({
owner: owner,
repo: repo,
path: path,
ref: headRef,
mediaType: {
format: "raw",
},
});

@cs278 cs278 added the bug Something isn't working label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant