Skip to content

Commit 1b2dd2e

Browse files
authored
Merge pull request #79 from grafana/board_workflow
Add workflow for issue labeling/ add to project
2 parents 3485cc8 + 96f909a commit 1b2dd2e

File tree

5 files changed

+119
-0
lines changed

5 files changed

+119
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Report a bug
4+
labels: ['grafana-aws-sdk-react', 'type/bug']
5+
---
6+
7+
<!--
8+
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.
9+
10+
Tip: record your screen and attach it as a gif to showcase the issue.
11+
12+
- Use query inspector to troubleshoot issues: https://bit.ly/2XNF6YS
13+
- How to record and attach gif: https://bit.ly/2Mi8T6K
14+
-->
15+
16+
**What happened**:
17+
18+
**What you expected to happen**:
19+
20+
**How to reproduce it (as minimally and precisely as possible)**:
21+
22+
**Screenshots**
23+
24+
<!--
25+
If applicable, add screenshots to help explain your problem.
26+
-->
27+
28+
**Anything else we need to know?**:
29+
30+
**Environment**:
31+
32+
- Grafana version:
33+
- Sdk version:
34+
- OS Grafana is installed on:
35+
- User OS & Browser:
36+
- Others:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Questions & Help
4+
url: https://community.grafana.com
5+
about: Please ask and answer questions here
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: ['grafana-aws-sdk-react', 'type/feature-request']
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/issue_commands.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[
2+
{
3+
"type": "label",
4+
"name": "grafana-aws-sdk-react",
5+
"action": "addToProject",
6+
"addToProject": {
7+
"url": "https://github.com/orgs/grafana/projects/97"
8+
}
9+
},
10+
{
11+
"type": "label",
12+
"name": "grafana-aws-sdk-react",
13+
"action": "removeFromProject",
14+
"removeFromProject": {
15+
"url": "https://github.com/orgs/grafana/projects/97"
16+
}
17+
},
18+
{
19+
"type": "label",
20+
"name": "type/docs",
21+
"action": "addToProject",
22+
"addToProject": {
23+
"url": "https://github.com/orgs/grafana/projects/69"
24+
}
25+
},
26+
{
27+
"type": "label",
28+
"name": "type/docs",
29+
"action": "removeFromProject",
30+
"removeFromProject": {
31+
"url": "https://github.com/orgs/grafana/projects/69"
32+
}
33+
}
34+
]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run commands when issues are labeled
2+
on:
3+
issues:
4+
types: [labeled, unlabeled]
5+
jobs:
6+
main:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Actions
10+
uses: actions/checkout@v2
11+
with:
12+
repository: 'grafana/grafana-github-actions'
13+
path: ./actions
14+
ref: main
15+
- name: Install Actions
16+
run: npm install --production --prefix ./actions
17+
- name: 'Generate token'
18+
id: generate_token
19+
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
20+
with:
21+
app_id: ${{ secrets.AWS_DS_TOKEN_CREATOR_ID }}
22+
private_key: ${{ secrets.AWS_DS_TOKEN_CREATOR_PEM }}
23+
- name: Run Commands
24+
uses: ./actions/commands
25+
with:
26+
token: ${{ steps.generate_token.outputs.token }}
27+
configPath: issue_commands

0 commit comments

Comments
 (0)