From 3311e89877db5a00704fbc927d2dc4df60c76be2 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Fri, 30 Aug 2024 08:43:12 +0000 Subject: [PATCH] added workflow to autolabel for issues --- .github/auto-label.json5 | 21 +++++++++++++++++++++ .github/workflows/auto-label-issue.yaml | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/auto-label.json5 create mode 100644 .github/workflows/auto-label-issue.yaml diff --git a/.github/auto-label.json5 b/.github/auto-label.json5 new file mode 100644 index 0000000..6022b40 --- /dev/null +++ b/.github/auto-label.json5 @@ -0,0 +1,21 @@ +{ + labelsSynonyms: { + bug: ['error', 'need fix', 'not working', 'failure', 'crash', 'problem', 'issue', 'defect', 'glitch', 'fault', 'anomaly'], + enhancement: ['upgrade', 'update', 'improve', 'feature request', 'new feature', 'enhance', 'extension', 'add-on', 'improvement'], + "help wanted": ['help', 'how can i', 'assistance needed', 'support needed', 'question', 'guidance', 'aid', 'need assistance', 'advice', 'instruction'], + documentation: ['docs', 'Readme', 'documentation', 'guide', 'manual', 'instructions', 'how-to', 'reference', 'tutorial', 'specification'], + docker: ['compose', 'Dockerfile', 'container', 'docker-compose', 'image', 'docker setup', 'kubernetes', 'docker swarm', 'containerization'], + performance: ['slow', 'lag', 'performance', 'speed', 'optimization', 'tuning', 'efficiency', 'latency', 'improve performance', 'boost', 'performance issue'], + security: ['vulnerability', 'exploit', 'attack', 'breach', 'security', 'protection', 'patch', 'secure', 'threat', 'risk', 'malware'], + ui: ['user interface', 'ui', 'ux', 'design', 'layout', 'front-end', 'visual', 'interface', 'experience', 'aesthetic', 'theme', 'style'], + test: ['test', 'testing', 'unit test', 'integration test', 'e2e test', 'automated test', 'test case', 'test suite', 'qa', 'quality assurance'], + compatibility: ['compatible', 'incompatible', 'version', 'compatibility', 'interop', 'support', 'versioning', 'cross-platform', 'integration', 'compatibility issue'] + }, + labelsNotAllowed: [ + 'duplicate', + 'good first issue', + 'invalid' + ], + //defaultLabels: ['triage'], + ignoreComments: true +} \ No newline at end of file diff --git a/.github/workflows/auto-label-issue.yaml b/.github/workflows/auto-label-issue.yaml new file mode 100644 index 0000000..1b51c18 --- /dev/null +++ b/.github/workflows/auto-label-issue.yaml @@ -0,0 +1,18 @@ +name: Labeling new issue +on: + issues: + types: ['opened', 'reopened'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/auto-label.json5 + sparse-checkout-cone-mode: false + - uses: Renato66/auto-label@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-file: .github/auto-label.json5 \ No newline at end of file