I have joined a new, big company very recently (a month ago). I work as software engineer.
I have noticed that something was not done correctly, so I created a pull request for the refactoring and showed it to my colleagues. One my colleagues suggested:
"it's very good change, we must do it, but let's stop [for now] as we are in the middle of beta release."
So I stopped working on it and focussed on other things. After a week I cleaned up the pull request and asked everyone to review it; on the same night I got messages from my other colleague, telling me he had copied all my changes into a new pull request with some testing changes, and asking me to close the original pull request.
I asked "what's the point, why I should I close mine at all", he said he needed that for linting (there was no such urgent rush for linting), and I did close my pull request convinced that credit will go to me, and after agreeing that I will continue to work on it.
The next day my colleague did not give me a chance to finish my pull request, he finished up and wrapped up his own and convinced the whole team to deploy it.
Doesn't this sound like stealing my work?
When I asked him about this, he said: "This is the way I am".
How can I explain this to my manager and what can I do to get credit for the work I have done?