From 99f179d21104b5f17c854170978228f773724302 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sat, 7 Nov 2020 10:25:27 -0800 Subject: [PATCH 1/2] infra: Convert from old autolabeler GitHub App to new GitHub actions version. The old autolabeler GitHub App is no longer supported and broken. The new GitHub actions autolabeler is maintained by GitHub. Signed-off-by: Tim 'mithro' Ansell --- .github/{autolabeler.yml => labeler.yml} | 0 .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 11 insertions(+) rename .github/{autolabeler.yml => labeler.yml} (100%) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/autolabeler.yml b/.github/labeler.yml similarity index 100% rename from .github/autolabeler.yml rename to .github/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..23956a0 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 1ffd21c306676e213888129510c70b08b32301f8 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sat, 7 Nov 2020 10:50:00 -0800 Subject: [PATCH 2/2] infra: Rework labeler.yml file. Convert to the other style of YAML lists which matches the documentation at https://github.com/actions/labeler#basic-examples and https://github.com/actions/labeler#common-examples Signed-off-by: Tim 'mithro' Ansell --- .github/labeler.yml | 125 +++++++++++++++++++++++++++++--------------- 1 file changed, 83 insertions(+), 42 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index e3c99a4..ca56095 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,64 +1,105 @@ -documentation: ["*.rst", "docs"] +documentation: + - *.rst + - docs + - docs/* + - docs/**/* -files-definition: ["definition.json"] +files-definition: + - definition.json -files-layout-gds: ["*Makefile"] +files-layout-gds: + - *.gds +files-layout-lef-magic: + - *.magic.lef +files-layout-lef: + - *.lef +files-layout-tlef: + - *.tlef -files-layout-gds: ["*.gds"] -files-layout-lef-magic: ["*.magic.lef"] -files-layout-lef: ["*.lef"] -files-layout-tlef: ["*.tlef"] - -files-model-behavioral-verilog: ["*.behavioral.v"] -files-model-functional-verilog: ["*.functional.v"] -files-model-spice: ["*.spice"] +files-model-behavioral-verilog: + - *.behavioral.v +files-model-functional-verilog: + - *.functional.v +files-model-spice: + - *.spice # files-model-verilog -files-netlist-cdl: ["*.cdl"] -files-netlist-tsv: ["*.netlist.tsv"] +files-netlist-cdl: + - *.cdl +files-netlist-tsv: + - *.netlist.tsv -files-powerpins: ["*.pp.*"] +files-powerpins: + - *.pp.* -files-schematic-svg: ["*.schematic.svg"] +files-schematic-svg: + - *.schematic.svg -files-symbol-svg: ["*.symbol.svg"] -files-symbol-verilog: ["*.symbol.v"] +files-symbol-svg: + - *.symbol.svg +files-symbol-verilog: + - *.symbol.v -files-timing-json: ["*.lib.json"] -# files-timing-liberty: ["*.lib"] +files-timing-json: + - *.lib.json +# files-timing-liberty: +# - *.lib -files-testbench-verilog: ["*.tb.v"] +files-testbench-verilog: + - *.tb.v -infrastructure: [".github", "travis", "kokoro"] +infrastructure: + - .github/* + - .github/**/* + - *travis* + - *kokoro* -lib-sky130_ef_io: ["sky130_fd_ef_io"] +lib-sky130_ef_io: + - sky130_fd_ef_io -lib-sky130_fd_pr_base: ["sky130_fd_pr_base"] -lib-sky130_fd_pr_rf: ["sky130_fd_pr_rf"] -lib-sky130_fd_pr_rf2: ["sky130_fd_pr_rf2"] +lib-sky130_fd_pr_base: + - sky130_fd_pr_base +lib-sky130_fd_pr_rf: + - sky130_fd_pr_rf +lib-sky130_fd_pr_rf2: + - sky130_fd_pr_rf2 -lib-sky130_fd_sc_hd: ["sky130_fd_sc_hd"] -lib-sky130_fd_sc_hdll: ["sky130_fd_sc_hdll"] -lib-sky130_fd_sc_hs: ["sky130_fd_sc_hs"] -lib-sky130_fd_sc_hvl: ["sky130_fd_sc_hvl"] -lib-sky130_fd_sc_lp: ["sky130_fd_sc_lp"] -lib-sky130_fd_sc_ls: ["sky130_fd_sc_ls"] -lib-sky130_fd_sc_ms: ["sky130_fd_sc_ms"] +lib-sky130_fd_sc_hd: + - sky130_fd_sc_hd +lib-sky130_fd_sc_hdll: + - sky130_fd_sc_hdll +lib-sky130_fd_sc_hs: + - sky130_fd_sc_hs +lib-sky130_fd_sc_hvl: + - sky130_fd_sc_hvl +lib-sky130_fd_sc_lp: + - sky130_fd_sc_lp +lib-sky130_fd_sc_ls: + - sky130_fd_sc_ls +lib-sky130_fd_sc_ms: + - sky130_fd_sc_ms -lib-sky130_fd_sp_flash: ["sky130_fd_sp_flash"] -lib-sky130_fd_sp_sram: ["sky130_fd_sp_sram"] +lib-sky130_fd_sp_flash: + - sky130_fd_sp_flash +lib-sky130_fd_sp_sram: + - sky130_fd_sp_sram -lib-sky130_osu_sc: ["sky130_osu_sc"] +lib-sky130_osu_sc: + - sky130_osu_sc* # scripts-documentation -scripts-python: ["*.py"] -scripts-python-liberty: ["liberty.py", "corners.py"] +scripts-python: + - *.py +scripts-python-liberty: + - liberty.py + - corners.py scripts-python-verilog: - - "skywater_pdk/verilog" # Script itself - - "*.blackbox.v" # Generated blackbox files - - "*.symbol.v" # Generated symbol files - - "*.tb.v" # Generated test bench - - "*_[0-9].v" # Generated strength driver wrappers + - skywater_pdk/verilog/* # Script itself + - skywater_pdk/verilog/**/* # Script itself + - *.blackbox.v # Generated blackbox files + - *.symbol.v # Generated symbol files + - *.tb.v # Generated test bench + - *_[0-9].v # Generated strength driver wrappers # tools-BAG # tools-Cadence-Innovus