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

SHA is missing when updating the file via commit to github #486

Open
its-Aman opened this issue Jan 25, 2023 · 1 comment
Open

SHA is missing when updating the file via commit to github #486

its-Aman opened this issue Jan 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@its-Aman
Copy link

Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.

Describe the bug
Leethub is not pushing my answers to github.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ' any problem on Leetcode'
  2. Click on 'submit' to submit the solution
  3. Scroll down to 'the bottom of the page to see the green tick mark'
  4. See error 'There is no green mark. Instead, a red mark is present indicating that the code isn't pushed'

Expected behavior
The code should be pushed and I should see the updated code in my synced github repo.

Screenshots
image

image

image

image

image

image

Additional context
the response throws following url: https://docs.github.com/rest/reference/repos#create-or-update-file-contents

My conclusion is that the sha field is missing in the payload which is required when updating a file.

@its-Aman its-Aman added the bug Something isn't working label Jan 25, 2023
@its-Aman
Copy link
Author

@QasimWani can you please check or redirect to the correct person ?

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

2 participants