From fd8a3159de53b13e72b6e25eecf65a001c62df00 Mon Sep 17 00:00:00 2001 From: Vanshika Sabharwal <143436704+VanshikaSabharwal@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:51:34 +0530 Subject: [PATCH] Added auto-label.json and updated issues.yml (#2601) * added auto-label.json and updated issues.yml * named the issues.yml to issue.yml * improved the sync of issue.yml --- .github/workflows/auto-label.json5 | 17 +++++++++++++++++ .github/workflows/{issues.yml => issue.yml} | 12 +++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/auto-label.json5 rename .github/workflows/{issues.yml => issue.yml} (86%) diff --git a/.github/workflows/auto-label.json5 b/.github/workflows/auto-label.json5 new file mode 100644 index 000000000..ab131db4c --- /dev/null +++ b/.github/workflows/auto-label.json5 @@ -0,0 +1,17 @@ +{ + labelsSynonyms: { + dependencies: ["dependencies", "dependabot", "dependency"], + security: ["security"], + "good first issue": [ + "security", + "dependencies", + "dependabot", + "dependency", + "layout", + "screen", + "design", + "figma", + ], + "ui/ux": ["layout", "screen", "design", "figma"], + }, +} diff --git a/.github/workflows/issues.yml b/.github/workflows/issue.yml similarity index 86% rename from .github/workflows/issues.yml rename to .github/workflows/issue.yml index ed8521f23..ec29d5dca 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issue.yml @@ -3,7 +3,7 @@ # # NOTE! # -# Please read the README.md file in this directory that defines what should +# Please read the README.md file in this directory that defines what should # be placed in this file # ############################################################################## @@ -12,18 +12,24 @@ name: Issues Workflow on: issues: - types: ['opened'] + types: ["opened"] jobs: Opened-issue-label: name: Adding Issue Label runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/workflows/auto-label.json5 + sparse-checkout-cone-mode: false + - uses: Renato66/auto-label@v2.3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ignore-comments: true default-labels: '["unapproved"]' - + Issue-Greeting: name: Greeting Message to User runs-on: ubuntu-latest