Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): automated issue labeling #41

Merged
merged 4 commits into from
Jan 9, 2022
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
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "\U0001F41E Bug report"
description: Report an issue
labels: [pending triage] # This will automatically assign the 'pending triage' label
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
placeholder: Bug description
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Please reproduce the problem you ran into.
placeholder: Reproduction
validations:
required: true
- type: textarea
id: additional-info
attributes:
label: Additional Info
description: Give us additional info like e.g. version numbers.
placeholder: Additional info
validations:
required: false
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Discord Chat
url: discord.gg/4qDjAmDj4P
about: Ask questions and discuss with other users in real time.
- name: Questions & Discussions
url: https://github.com/faker-js/faker.js/discussions
about: Use GitHub discussions for message-board style questions and discussions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "\U0001F680 New feature proposal"
description: Propose a new feature
labels: ["pending triage"] # This will automatically assign the 'pending triage' label
body:
- type: markdown
attributes:
value: Thanks for your interest in the project and taking the time to fill out this feature report!
- type: textarea
id: feature-description
attributes:
label: Clear and concise description of the problem
description: "As a developer using faker I want [goal / wish] so that [benefit]. If you intend to submit a PR for this issue, tell us in the description. Thanks!"
validations:
required: true
- type: textarea
id: suggested-solution
attributes:
label: Suggested solution
description: "In module [xy] we could provide following implementation..."
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Alternative
description: Clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Any other context about the feature request here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/freestyle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: Freestyle Report
about: Create a report to help us improve
labels: "pending triage" # This will automatically assign the 'pending triage' label
---
32 changes: 32 additions & 0 deletions .github/workflows/issue-labeling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Issue Labeling

on:
issues:
types: [labeled]

jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: contribution welcome
# If the issue is labeled with 'help wanted', a comment will be posted
if: github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@v2
with:
actions: "create-comment, remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
damienwebdev marked this conversation as resolved.
Show resolved Hide resolved
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!
labels: "pending triage"

- name: remove pending
# If the issue is given either the 'enhancement' or 'bug' label, the 'pending triage' label will be removed
# Issues without the label 'pending triage' are filtered with the third part of the condition, since the label does not have to be removed
if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug' || (contains(github.event.label.name, 'pending triage') == false)
Shinigami92 marked this conversation as resolved.
Show resolved Hide resolved
uses: actions-cool/issues-helper@v2
with:
actions: "remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: "pending triage"