r/github • u/throw-away-2025rev2 • Mar 20 '26
Discussion Repo Maintainer closed my PR then just pushed it into their codebase as their own
I'm fairly novice with Github and git, only been using it for a couple years for the most part, and this is first time this has ever happened to me.
Had a fairly popular repo, somebody posted an issue, and I submitted a PR to fix said issue, it was literally like 4 lines of code added and 1 removed. And the owner of this repo, instead of merging it, just closed my PR then shoved the code in himself passing it off as his own code.
I'm a bit disappointed by this but I get it's the reality of opensource.
What do you do in this scenario?
EDIT: I made a professional comment on the closed PR to the maintainer, he replied, but made an excuse with no retribution. It was 4 lines of code, I will go about my day.
View all comments
Show parent comment
1
u/throw-away-2025rev2 Mar 20 '26
No it wasn't low effort, it was technically a feature, I don't want to give away too much of what it does because the repo is pretty obvious what it is when I explain.
I don't want to shame the guy online because the project is actually a really good one.
But he probably could have done it and would have taken him an hour worth of work to do, it involved research and testing. I know this because that's the exact time it took me. 1 hour from testing to implementation to pushing and submitting.