The Gm chord scale pattern is the 5th position pentatonic minor. This means when you are playing a Gm chord or a Gm style barre chord you can add notes from the Gm scale pattern with relative ease, because the scale pattern is built around the chord pattern. On the left you can see the scale pattern with the suggested fingerings and on the right is the Gm chord pattern highlighted.
The examples below are in C#/Dbm.