Toroid-io / drone-kicad

Drone plugin for generating KiCad EDA output files
GNU General Public License v3.0
8 stars 2 forks source link

Tag board with commit sha or tag #2

Closed andresmanelli closed 7 years ago

andresmanelli commented 7 years ago

As of the examples provided with KiCad, it would be useful to be able to replace a given string in the board (text F.SilkS or other) with the commit sha or tag.

for draw in pcb.m_Drawings:
  if draw.GetClass() == 'PTEXT':
    if draw.GetText() == "$sha$":
      draw.SetText(var_sha)

Same with tag if it is a tag event.