Skip to content

Commit

Permalink
Added auto-label.json and updated issues.yml (#2601)
Browse files Browse the repository at this point in the history
* added auto-label.json and updated issues.yml

* named the issues.yml to issue.yml

* improved the sync of issue.yml
  • Loading branch information
VanshikaSabharwal authored Nov 20, 2024
1 parent 6e33d49 commit fd8a315
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/auto-label.json5
Original file line number Diff line number Diff line change
@@ -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"],
},
}
12 changes: 9 additions & 3 deletions .github/workflows/issues.yml → .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
##############################################################################
Expand All @@ -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/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
default-labels: '["unapproved"]'

Issue-Greeting:
name: Greeting Message to User
runs-on: ubuntu-latest
Expand Down

0 comments on commit fd8a315

Please sign in to comment.