Skip to content

Commit a48f77c

Browse files
authored
Update workflows and templates (#333)
1 parent 6a96ed8 commit a48f77c

File tree

4 files changed

+54
-48
lines changed

4 files changed

+54
-48
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ labels: ["grafana-aws-sdk", "type/bug"]
77
<!--
88
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.
99
10-
Tip: record your screen and attach it as a gif to showcase the issue.
10+
PROTIP: record your screen and attach it as a gif to showcase the issue.
1111
12-
- Use query inspector to troubleshoot issues: https://bit.ly/2XNF6YS
13-
- How to record and attach gif: https://bit.ly/2Mi8T6K
12+
- Use query inspector to troubleshoot issues: https://community.grafana.com/t/how-to-use-grafanas-query-inspector-to-troubleshoot-issues/2630
13+
- How to record and attach gif: https://community.grafana.com/t/proptip-record-gif-and-attach-to-bug-report-to-showcase-issue/31320
1414
-->
1515

1616
**What happened**:
@@ -19,6 +19,15 @@ Tip: record your screen and attach it as a gif to showcase the issue.
1919

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

22+
<!--
23+
Example:
24+
25+
1. Go to '...'
26+
2. Click on '....'
27+
3. Scroll down to '....'
28+
4. See error
29+
-->
30+
2231
**Screenshots**
2332

2433
<!--
@@ -30,7 +39,7 @@ If applicable, add screenshots to help explain your problem.
3039
**Environment**:
3140

3241
- Grafana version:
33-
- Sdk version:
42+
- SDK version:
3443
- OS Grafana is installed on:
3544
- User OS & Browser:
3645
- Others:

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
labels: ["type/feature-request"]
4+
labels: ["grafana-aws-sdk", "type/feature-request"]
55
---
66

77
**Is your feature request related to a problem? Please describe.**

.github/issue_commands.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
[
2-
{
3-
"type": "label",
4-
"name": "grafana-aws-sdk",
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",
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-
}
1+
[
2+
{
3+
"type": "label",
4+
"name": "grafana-aws-sdk",
5+
"action": "addToProject",
6+
"addToProject": {
7+
"url": "https://github.com/orgs/grafana/projects/97"
338
}
34-
]
9+
},
10+
{
11+
"type": "label",
12+
"name": "grafana-aws-sdk",
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+
]

.github/workflows/issue_commands.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Run commands when issues are labeled
22
on:
33
issues:
44
types: [labeled, unlabeled]
5-
permissions:
6-
contents: read
7-
issues: write
8-
5+
permissions: {}
96
jobs:
107
main:
11-
runs-on: ubuntu-latest
128
permissions:
139
contents: read
14-
# The "id-token: write" permission is required by "get-vault-secrets" action
15-
id-token: write
10+
id-token: write # The "id-token: write" permission is required by "get-vault-secrets" action
11+
issues: write
12+
runs-on: ubuntu-latest
1613
steps:
1714
- name: Checkout Actions
1815
uses: actions/checkout@v5
@@ -32,10 +29,10 @@ jobs:
3229
AWS_DS_TOKEN_CREATOR_PEM=aws-ds-token-creator:pem
3330
- name: "Generate token"
3431
id: generate_token
35-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
32+
uses: actions/create-github-app-token@v2
3633
with:
37-
app_id: ${{ env.AWS_DS_TOKEN_CREATOR_ID }}
38-
private_key: ${{ env.AWS_DS_TOKEN_CREATOR_PEM }}
34+
app-id: ${{ env.AWS_DS_TOKEN_CREATOR_ID }}
35+
private-key: ${{ env.AWS_DS_TOKEN_CREATOR_PEM }}
3936
- name: Run Commands
4037
uses: ./actions/commands
4138
with:

0 commit comments

Comments
 (0)