Code Monkey home page Code Monkey logo

Comments (11)

jarlin8 avatar jarlin8 commented on July 18, 2024 1

thank you @vaakash i will check my program

from git-it-write.

vaakash avatar vaakash commented on July 18, 2024

Hi,

Could you please share the repository URL and a screenshot of the repo settings in GIW plugin?

I'll try to reproduce the issue.

Regarding posts getting generated on delete, that is expected. Unless .md files are deleted in the repo, post will be created.

from git-it-write.

jarlin8 avatar jarlin8 commented on July 18, 2024

yes, thank you!

1703897117816

from git-it-write.

jarlin8 avatar jarlin8 commented on July 18, 2024

When I try to update using the button pull only changes in the WordPress plugin backend, it works fine, but when pushing a new file to the GitHub repository, it creates a lot of duplicate posts.
image

from git-it-write.

jarlin8 avatar jarlin8 commented on July 18, 2024

add: i'm using the githubToken push to the GitHub repository.
maybe this is the reason, have test that when using the githubToken push to the GitHub repository, creates duplicate posts.
when push by git or Github Desktop,work fine.

from git-it-write.

vaakash avatar vaakash commented on July 18, 2024

Hi @jarlin8,

I tried your repository and I'm not able to reproduce the issue.

Everytime I do "push from changes", I can see that the posts are not duplicated.
They are published only once.

image

Note:
The filename is the ID for the post (i.e post-slug). if that post slug/filename is not present then new post will be created.

I would suggest testing on a folder with less files to identify the issue.

The type of publish "github push or desktop" does not matter. The plugin uses same logic to publish posts.

Thanks,
Aakash

from git-it-write.

jarlin8 avatar jarlin8 commented on July 18, 2024

Thank you for your hard work in testing and responding. The situation you tested indeed has no issues. However, there are problems with using the githubToken push to the GitHub repository, creates duplicate posts. I tested another file called 'testid' and still created two articles.,Here is my log. Thanks!
https://raw.githubusercontent.com/jarlin8/fendou.la/main/fendou-posts/log.txt

from git-it-write.

vaakash avatar vaakash commented on July 18, 2024

Hi @jarlin8,

It seems the Github push event is sent multiple times.

Can you please go to Repository -> Settings -> WebHook -> Edit the webhook.

Under settings tab, please ensure "just the push event" is selected.

Under "recent deliveries" tab, ensure only one event is pushed by Github whenver you make a commit.

Thanks,
Aakash

from git-it-write.

jarlin8 avatar jarlin8 commented on July 18, 2024

image
image
"recent deliveries" tab,have so many event?

from git-it-write.

vaakash avatar vaakash commented on July 18, 2024

Hi @jarlin8,
We can see more than one push events in Github for the same commit.
Can you please review how you are making these commits? Please check online too to avoid this issue.

We should see only one push event for one commit.

image

from git-it-write.

tblobaum avatar tblobaum commented on July 18, 2024

@vaakash deserves a coffee for this one

from git-it-write.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.