From d13e59148c094d0a0cf08d44d3c0b729e53a0dca Mon Sep 17 00:00:00 2001 From: witzki Date: Fri, 15 Apr 2022 11:48:21 +0200 Subject: [PATCH 1/2] add pull request labeler --- .github/labeler.yml | 63 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 14 ++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..09db02a61e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,63 @@ +# LABEL List for workflow/labeler.yml +iOS: +- Document/0x06* + +Android: +- Document/0x05* + +"MASVS-STORAGE": +- Document/0x05d* +- Document/0x06d* + +"MASVS-CRYPTO": +- Document/0x05e* +- Document/0x06e* + +"MASVS-AUTH": +- Document/0x05f* +- Document/0x06f* + +"MASVS-NETWORK": +- Document/0x05g* +- Document/0x06g* + +"MASVS-PLATFORM": +- Document/0x05h* +- Document/0x06h* + +"MASVS-CODE": +- Document/0x05i* +- Document/0x06i* + +"MASVS-RESILIENCE": +- Document/0x05j* +- Document/0x06j* + +tests: +- Document/0x05d* +- Document/0x05e* +- Document/0x05f* +- Document/0x05g* +- Document/0x05h* +- Document/0x05i* +- Document/0x05j* +- Document/0x06d* +- Document/0x06e* +- Document/0x06f* +- Document/0x06g* +- Document/0x06h* +- Document/0x06i* +- Document/0x06j* + +fundamentals: +- Document/0x05a* +- Document/0x05b* +- Document/0x06a* +- Document/0x06b* + +techniques: +- Document/0x05c* +- Document/0x06c* + +tools: +- Document/0x08* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..057208eda3 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From dc6e948bad51f4fbe152ad0ea344e1715cd3081e Mon Sep 17 00:00:00 2001 From: witzki Date: Sat, 16 Apr 2022 12:12:43 +0200 Subject: [PATCH 2/2] label consistency and regex names --- .github/labeler.yml | 66 +++++++++++++++------------------------------ 1 file changed, 21 insertions(+), 45 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 09db02a61e..1b9df08c3d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,63 +1,39 @@ -# LABEL List for workflow/labeler.yml -iOS: +# LABEL List for Workflow labeler.yml job triage +"iOS": - Document/0x06* -Android: +"Android": - Document/0x05* "MASVS-STORAGE": -- Document/0x05d* -- Document/0x06d* +- Document/0x0[5-6]d* "MASVS-CRYPTO": -- Document/0x05e* -- Document/0x06e* +- Document/0x0[5-6]e* "MASVS-AUTH": -- Document/0x05f* -- Document/0x06f* +- Document/0x0[5-6]f* "MASVS-NETWORK": -- Document/0x05g* -- Document/0x06g* +- Document/0x0[5-6]g* "MASVS-PLATFORM": -- Document/0x05h* -- Document/0x06h* +- Document/0x0[5-6]h* "MASVS-CODE": -- Document/0x05i* -- Document/0x06i* +- Document/0x0[5-6]i* "MASVS-RESILIENCE": -- Document/0x05j* -- Document/0x06j* - -tests: -- Document/0x05d* -- Document/0x05e* -- Document/0x05f* -- Document/0x05g* -- Document/0x05h* -- Document/0x05i* -- Document/0x05j* -- Document/0x06d* -- Document/0x06e* -- Document/0x06f* -- Document/0x06g* -- Document/0x06h* -- Document/0x06i* -- Document/0x06j* - -fundamentals: -- Document/0x05a* -- Document/0x05b* -- Document/0x06a* -- Document/0x06b* - -techniques: -- Document/0x05c* -- Document/0x06c* - -tools: +- Document/0x0[5-6]j* + +"tests": +- Document/0x0[5-6][d-j]* + +"fundamentals": +- Document/0x0[5-6][a-b]* + +"techniques": +- Document/0x0[5-6]c* + +"tools": - Document/0x08*