Comments (11)
thank you @vaakash i will check my program
from git-it-write.
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.
yes, thank you!
from git-it-write.
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.
from git-it-write.
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.
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.
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.
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.
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.
"recent deliveries" tab,have so many event?
from git-it-write.
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.
from git-it-write.
@vaakash deserves a coffee for this one
from git-it-write.
Related Issues (20)
- Other git repos: A plugin we'd like to consider HOT 1
- Add a post property for featured image, please HOT 5
- Post property "post_status" doesn't work properly HOT 2
- require_once missing, and paths not working. HOT 1
- How to copy directly .md file data HOT 2
- Images not uploaded with private Github repo HOT 3
- Plugin cannot be activated due to missing files (composer instructions in README missing) HOT 1
- RWD images HOT 1
- Can future consider supporting formats,like: [[wikilink]] ![[wikilink]] HOT 1
- ability to upload images from sub folders HOT 3
- Github Webhook generate a 401 error HOT 2
- special characters not supported in post properties HOT 1
- ability to configure the slug through post properties HOT 1
- How to use a code highlight plugin with code-it-write HOT 1
- Custom taxonomy HOT 3
- Get GitHub info HOT 2
- Use of .html files, without conversion HOT 5
- Export wordpress posts to markdown HOT 3
- Error when pushing md file with image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-it-write.