Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bug:
- '\b(bug|error|fail|crash|defect|broken)\b'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve the accuracy of bug detection, consider adding failure to the list of keywords. It's a common synonym for the existing terms.

  - '\b(bug|error|fail|failure|crash|defect|broken)\b'

- 'Bug report'

enhancement:
- '\b(feature|request|idea|proposal|improve|add)\b'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To better capture enhancement requests, consider adding suggestion to your keyword list. This will help in labeling issues that are phrased as suggestions for improvement.

  - '\b(feature|request|idea|proposal|improve|add|suggestion)\b'

- 'Feature request'

question:
- '\b(question|help|how to|support|query)\b'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To broaden the scope for questions, you could add the keyword assistance. This can help catch requests for help that don't use the other specified terms.

  - '\b(question|help|how to|support|query|assistance)\b'

21 changes: 21 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
core:
- graphgen/**/*

examples:
- examples/**/*

baselines:
- baselines/**/*

documentation:
- "**/*.md"

workflows:
- .github/workflows/*.yml
- .github/workflows/*.yaml

config:
- .github/pr-labeler.yml
- .github/issue-labeler.yml
- .pre-commit-config.yaml
- .pylintrc
31 changes: 31 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Labeler
on:
pull_request_target:
types: [opened, synchronize, reopened]
issues:
types: [opened]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
pr-labeler:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml

issue-labeler:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/issue-labeler.yml
enable-versioned-regex: 0