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

Pushing new idea fails #96

Open
GridexX opened this issue Sep 13, 2022 · 3 comments
Open

Pushing new idea fails #96

GridexX opened this issue Sep 13, 2022 · 3 comments

Comments

@GridexX
Copy link

GridexX commented Sep 13, 2022

I just discover Eureka, from a tweet ! The idea sounds great and I just want to try it out

I have created a new private repository on GitHub with a Readme and clone it via SSH into my laptop.

When I add one idea into eureka, I get the following error

Adding and committing your new idea to main..
Added and committed!
Pushing your new idea..
 ERROR eureka > No authentication method succeeded

Search into the documentation to see if some authentication from Git is needed and as I found nothing, I ask here if there is some configuration needed, or how could be the problem fixed ?

Thanks in advance

@GridexX
Copy link
Author

GridexX commented Sep 22, 2022

cc @simeg

@nisargparikh69
Copy link

@GridexX Are you able to manually push any changes by git commands for your idea repo? Make sure you are able to push and have access right to push for that repo

@Itookmyprozac
Copy link

@nisargparikh69 I have the exact problem.

I push on my git repo without problems via ssh keys so the issue is not there in my case.

I actually wrote my own small bash script to push changes automatically using inotifywait and it works like a charm. It is basically the same idea as eureka but with very little knowledge and programming skills. I'll leave the code here if anyone wants to use/modify it:

#!/bin/bash

# Routes and configurations
REPO_DIR="/my-local-repo-dir/ideas/"
FILE_TO_WATCH="notes-ideas.md"
BRANCH_NAME="main"

while true; do
    # Wait until event CLOSE_WRITE is detected in the file
    inotifywait -q -e CLOSE_WRITE "$REPO_DIR$FILE_TO_WATCH"

    # Do the commit and push
    cd "$REPO_DIR"
    git add "$FILE_TO_WATCH"
    git commit -m "Update in $FILE_TO_WATCH"
    git push origin "$BRANCH_NAME"
done

Then I just created an alias on my .zshrc: alias idea="micro /my-local-repo-dir/ideas/notes-ideas.md". Change micro to whatever text editor you want. Then source .zshrc and type idea in your terminal to edit the file (notes-ideas.md, in my case) and save changes to automatically push them to your repo.

All this presumes that you have already created your repo on github (or other service you use) and that you don't use user+password to upload your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants