Skip to content

Commit

Permalink
Merge pull request #79 from grafana/board_workflow
Browse files Browse the repository at this point in the history
Add workflow for issue labeling/ add to project
  • Loading branch information
katebrenner authored Apr 1, 2024
2 parents 3485cc8 + 96f909a commit 1b2dd2e
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Report a bug
labels: ['grafana-aws-sdk-react', 'type/bug']
---

<!--
Please use this template to create your bug report. By providing as much info as possible you help us understand the issue, reproduce it and resolve it for you quicker. Therefore, take a couple of extra minutes to make sure you have provided all info needed.
Tip: record your screen and attach it as a gif to showcase the issue.
- Use query inspector to troubleshoot issues: https://bit.ly/2XNF6YS
- How to record and attach gif: https://bit.ly/2Mi8T6K
-->

**What happened**:

**What you expected to happen**:

**How to reproduce it (as minimally and precisely as possible)**:

**Screenshots**

<!--
If applicable, add screenshots to help explain your problem.
-->

**Anything else we need to know?**:

**Environment**:

- Grafana version:
- Sdk version:
- OS Grafana is installed on:
- User OS & Browser:
- Others:
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Questions & Help
url: https://community.grafana.com
about: Please ask and answer questions here
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
labels: ['grafana-aws-sdk-react', 'type/feature-request']
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
34 changes: 34 additions & 0 deletions .github/issue_commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"type": "label",
"name": "grafana-aws-sdk-react",
"action": "addToProject",
"addToProject": {
"url": "https://github.com/orgs/grafana/projects/97"
}
},
{
"type": "label",
"name": "grafana-aws-sdk-react",
"action": "removeFromProject",
"removeFromProject": {
"url": "https://github.com/orgs/grafana/projects/97"
}
},
{
"type": "label",
"name": "type/docs",
"action": "addToProject",
"addToProject": {
"url": "https://github.com/orgs/grafana/projects/69"
}
},
{
"type": "label",
"name": "type/docs",
"action": "removeFromProject",
"removeFromProject": {
"url": "https://github.com/orgs/grafana/projects/69"
}
}
]
27 changes: 27 additions & 0 deletions .github/workflows/issue_commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run commands when issues are labeled
on:
issues:
types: [labeled, unlabeled]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'grafana/grafana-github-actions'
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: 'Generate token'
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.AWS_DS_TOKEN_CREATOR_ID }}
private_key: ${{ secrets.AWS_DS_TOKEN_CREATOR_PEM }}
- name: Run Commands
uses: ./actions/commands
with:
token: ${{ steps.generate_token.outputs.token }}
configPath: issue_commands

0 comments on commit 1b2dd2e

Please sign in to comment.