From ce4f7d07195906e844a8548bc87a6e533a54e65f Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 5 Dec 2023 10:56:27 -0800 Subject: [PATCH 1/5] Update labeler.yml to use v4 version. Since v5 introduces breaking changes, which takes time to adapt --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 808aaa18b..1a4b193b3 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@main + - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: ".github/labeler.yml" From 95703fd9e65f39206164486a1fdd1b41372f2738 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 5 Dec 2023 17:53:22 -0800 Subject: [PATCH 2/5] [ci] use checkout in labeler; following the latst documentation https://github.com/actions/labeler#using-configuration-path-input-together-with-the-actionscheckout-action --- .github/workflows/labeler.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 1a4b193b3..879a51e8f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,7 +6,8 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: action/checkoutv4 # Upload repositoru content to the runner + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: ".github/labeler.yml" From 7a41aaf19bf89ee1779acd39cf7ba3bf71043776 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 5 Dec 2023 17:55:04 -0800 Subject: [PATCH 3/5] [ci] typo --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 879a51e8f..dfe3d0cfe 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: action/checkoutv4 # Upload repositoru content to the runner + - uses: actions/checkoutv4 # Upload repositoru content to the runner - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 33f0f0feed7d32920bb26d1f13a3cbfc6df8a2e1 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 5 Dec 2023 21:09:43 -0800 Subject: [PATCH 4/5] [ci] typo --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index dfe3d0cfe..0b1ef0750 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/checkoutv4 # Upload repositoru content to the runner + - uses: actions/checkout@v4 # Upload repositoru content to the runner - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 7cc43dea4ab27e4d17ace94e9e5203c57f13bf6d Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 6 Dec 2023 11:11:55 -0800 Subject: [PATCH 5/5] [ci] debugging --- .github/labeler.yml | 153 ++++++++++++++++++++-------------- .github/workflows/labeler.yml | 4 +- 2 files changed, 95 insertions(+), 62 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f2a30f198..4ac24b4d2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,103 +1,134 @@ # See https://github.com/actions/labeler#common-examples for defining patterns. -# The globs use "minimatch" syntax found at https://github.com/isaacs/minimatch +# The globs use minimatch syntax found at https://github.com/isaacs/minimatch # # WARNING: Due to this file being yaml, any string starting with `*` must be # wrapped in quotes. # Third-party tools ABC: - - abc/* - - abc/**/* +- changed-files: + - any-glob-to-any-file: 'abc/*' + - any-glob-to-any-file: 'abc/**/*' ACE2: - - ace2/* - - ace2/**/* +- changed-files: + - any-glob-to-any-file: 'ace2/*' + - any-glob-to-any-file: 'ace2/**/*' VPR: - - vpr/* - - vpr/**/* - - libs/**/* +- changed-files: + - any-glob-to-any-file: 'vpr/*' + - any-glob-to-any-file: 'vpr/**/*' + - any-glob-to-any-file: 'libs/**/*' # General areas documentation: - - docs/* - - docs/**/* - - "*README*" - - "*.md" - - tutorial - - "*.rst" - - ".readthedocs.yml" +- changed-files: + - any-glob-to-any-file: 'docs/*' + - any-glob-to-any-file: 'docs/**/*' + - any-glob-to-any-file: '*README*' + - any-glob-to-any-file: '*.md' + - any-glob-to-any-file: 'tutorial' + - any-glob-to-any-file: '*.rst' + - any-glob-to-any-file: '.readthedocs.yml' github: - - .github/* - - .github/**/* +- changed-files: + - any-glob-to-any-file: '.github/*' + - any-glob-to-any-file: '.github/**/*' docker: - - Dockerfile - - "*docker*" +- changed-files: + - any-glob-to-any-file: 'Dockerfile' + - any-glob-to-any-file: '*docker*' build: - - Makefile - - "*.make" - - CMakeLists.txt - - cmake +- changed-files: + - any-glob-to-any-file: 'Makefile' + - any-glob-to-any-file: '*.make' + - any-glob-to-any-file: 'CMakeLists.txt' + - any-glob-to-any-file: 'cmake' libopenfpga: - - "libopenfpga/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/**' libopenfpga-bitstream: - - "libopenfpga/libfpgabitstream/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/libfpgabitstream/**' libopenfpga-arch-parser: - - "libopenfpga/libarchopenfpga/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/libarchopenfpga/**' libopenfpga-fabric-key: - - "libopenfpga/libfabrickey/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/libfabrickey/**' libopenfpga-shell: - - "libopenfpga/libopenfpgashell/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/libopenfpgashell/**' libopenfpga-utils: - - "libopenfpga/libopenfpgautil/**" +- changed-files: + - any-glob-to-any-file: 'libopenfpga/libopenfpgautil/**' openfpga-tools: - - "openfpga/**" +- changed-files: + - any-glob-to-any-file: 'openfpga/**' openfpga-verilog: - - "openfpga/*/fpga_verilog/**" +- changed-files: + - any-glob-to-any-file: 'openfpga/*/fpga_verilog/**' openfpga-sdc: - - "openfpga/*/fpga_sdc/**" +- changed-files: + - any-glob-to-any-file: 'openfpga/*/fpga_sdc/**' openfpga-bitstream: - - "openfpga/*/fpga_bitstream/**" +- changed-files: + - any-glob-to-any-file: 'openfpga/*/fpga_bitstream/**' openfpga-spice: - - "openfpga/*/fpga_spice/**" +- changed-files: + - any-glob-to-any-file: 'openfpga/*/fpga_spice/**' flow-scripts: - - "openfpga_flow/scripts/**" - - "openfpga_flow/openfpga_shell_scripts/**" - - "openfpga_flow/openfpga_simulation_settings/**" - - "openfpga_flow/misc/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/scripts/**' + - any-glob-to-any-file: 'openfpga_flow/openfpga_shell_scripts/**' + - any-glob-to-any-file: 'openfpga_flow/openfpga_simulation_settings/**' + - any-glob-to-any-file: 'openfpga_flow/misc/**' architecture-description: - - "openfpga_flow/vpr_arch/**" - - "openfpga_flow/openfpga_arch/**" - - "openfpga_flow/fabric_keys/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/vpr_arch/**' + - any-glob-to-any-file: 'openfpga_flow/openfpga_arch/**' + - any-glob-to-any-file: 'openfpga_flow/fabric_keys/**' bitstream: - - "openfpga_flow/fabric_keys/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/fabric_keys/**' cell-library: - - "openfpga_flow/openfpga_cell_library/**" - - "openfpga_flow/tech/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/openfpga_cell_library/**' + - any-glob-to-any-file: 'openfpga_flow/tech/**' benchmarks: - - "openfpga_flow/benchmarks/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/benchmarks/**' tests: - - "openfpga_flow/tasks/**" +- changed-files: + - any-glob-to-any-file: 'openfpga_flow/tasks/**' # Tag pull requests with the languages used to make it easy to see what is # being used. lang-hdl: - - "*.v" - - "*.sv" +- changed-files: + - any-glob-to-any-file: '*.v' + - any-glob-to-any-file: '*.sv' lang-cpp: - - "*.c*" - - "*.h" +- changed-files: + - any-glob-to-any-file: '*.c*' + - any-glob-to-any-file: '*.h' lang-perl: - - "*.pl" - - "*perl*" +- changed-files: + - any-glob-to-any-file: '*.pl' + - any-glob-to-any-file: '*perl*' lang-python: - - "*.py" +- changed-files: + - any-glob-to-any-file: '*.py' lang-shell: - - "*.sh" +- changed-files: + - any-glob-to-any-file: '*.sh' lang-netlist: - - "*.blif" - - "*.eblif" - - "*.edif" - - "*.vqm" +- changed-files: + - any-glob-to-any-file: '*.blif' + - any-glob-to-any-file: '*.eblif' + - any-glob-to-any-file: '*.edif' + - any-glob-to-any-file: '*.vqm' lang-make: - - "*.make" - - Makefile - - CMakeLists.txt \ No newline at end of file +- changed-files: + - any-glob-to-any-file: '*.make' + - any-glob-to-any-file: 'Makefile' + - any-glob-to-any-file: 'CMakeLists.txt' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 0b1ef0750..65abffb8b 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,9 +4,11 @@ on: jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 # Upload repositoru content to the runner - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"