Skip to content

Commit

Permalink
forms and automatic labeler action
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaspadilha committed Jan 26, 2024
1 parent dca04c6 commit bf767bd
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ body:
- type: dropdown
id: bug-location
attributes:
label: Where did you encounter the bug?
label: In which step did you encounter the bug?
options:
- FarmVibes.AI setup
- Workflow execution
- Notebook execution
- Documentation
- Other
validations:
required: true

- type: dropdown
id: cluster-type
attributes:
label: Are you using a local or remote (AKS) FarmVibes.AI cluster?
label: Are you using a local or a remote (AKS) FarmVibes.AI cluster?
options:
- Local cluster
- Remote (ASK) cluster
validations:
required: true
required: false


- type: textarea
Expand All @@ -36,18 +37,19 @@ body:
label: Bug description
description: |
Please describe the bug you encountered in as much detail as possible.
If you are encountering an error, please include the full error message.
If you are encountering an error, please include the full error message,
log file content, or the `run.reason` field if the error occurred during workflow execution.
validations:
required: true
required: false

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce the problem
description: |
Please describe the steps you took to reproduce the bug. If the issue was encountered
during a workflow or notebook execution, please include the workflow name, parameters,
input geometry and time range.
during workflow or notebook execution, please include the workflow/notebook name,
parameters, input geometry and time range.
validations:
required: false

14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ body:
attributes:
value: Thanks for taking the time to reach us! Feel free to ask any question related to FarmVibes.AI, we will get back to you as soon as possible.

- type: dropdown
id: info-location
attributes:
label: Topic
options:
- General question
- Feature request
- Documentation
- FarmVibes.AI setup
- Notebook
- Workflow
validations:
required: false

- type: textarea
id: info-request
attributes:
Expand Down
35 changes: 35 additions & 0 deletions .github/advanced-issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
policy:
- template: ['bug.yml', 'question.yml']
- section:
- id: [bug-location]
block-list: ['Other']
label:
- name: 'documentation'
keys: ['Documentation']
- name: 'FarmVibes.AI setup'
keys: ['FarmVibes.AI setup']
- name: 'notebooks'
keys: ['Notebook execution']
- name: 'workflows'
keys: ['Workflow execution']
- section:
- id: [cluster-type]
label:
- name: 'local cluster'
keys: ['Local cluster']
- name: 'remote cluster'
keys: ['Remote (ASK) cluster']
- section:
- id: [info-location]
block-list: ['General question']
label:
- name: 'enhancement'
keys: ['Feature request']
- name: 'documentation'
keys: ['Documentation']
- name: 'FarmVibes.AI setup'
keys: ['FarmVibes.AI setup']
- name: 'notebooks'
keys: ['Notebook']
- name: 'workflows'
keys: ['Workflow']
34 changes: 34 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Issue labeler
on:
issues:
types: [ opened ]

permissions:
contents: read

jobs:
label-component:
runs-on: ubuntu-latest

permissions:
# required for all workflows
issues: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- uses: actions/checkout@v3

- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
# with:
# template-path: .github/ISSUE_TEMPLATE/bug.yml

- name: Set labels based bug type
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf767bd

Please sign in to comment.