This question already has an answer here:

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?

marked as duplicate by Gregory Currie, gnat, virolino, Mister Positive Apr 18 at 10:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 4
    What sort of credit are you looking for? What sort of credit did your coworker recieve? – Gregory Currie Apr 18 at 6:02
  • If he was working on the same PR. Your contributions should be visible. – dan-klasson Apr 18 at 7:15
  • 1
    Can someone who understood the question please make an edit to clarify and reformat? Hard to read as it is now. – Nyakouai Apr 18 at 7:26
  • I can't read that, can someone sort the formatting please? – spikey_richie Apr 18 at 7:33
  • 1
    Did you just close your PR or did you delete it (and all relating branches?) – FooTheBar Apr 18 at 9:47