Skip to content

Commit 3374e92

Browse files
authored
Update workflows and templates (#494)
1 parent 2e8b4e7 commit 3374e92

File tree

3 files changed

+45
-26
lines changed

3 files changed

+45
-26
lines changed

.github/ISSUE_TEMPLATE/1-bug_report.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
name: Bug report
33
about: Report a bug you found when using this plugin
4-
labels: ["datasource/Timestream", "type/bug"]
4+
labels: ['datasource/Timestream', 'type/bug']
55
---
66

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
1010
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**:
@@ -37,8 +37,9 @@ If applicable, add screenshots to help explain your problem.
3737
**Anything else we need to know?**:
3838

3939
**Environment**:
40+
4041
- Grafana version:
4142
- Plugin version:
4243
- OS Grafana is installed on:
4344
- User OS & Browser:
44-
- Others:
45+
- Others:

.github/issue_commands.json

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
1-
[
2-
{
3-
"type": "label",
4-
"name": "datasource/Timestream",
5-
"action": "addToProject",
6-
"addToProject": {
7-
"url": "https://github.com/orgs/grafana/projects/97"
8-
}
9-
},
10-
{
11-
"type": "label",
12-
"name": "type/docs",
13-
"action": "addToProject",
14-
"addToProject": {
15-
"url": "https://github.com/orgs/grafana/projects/69"
16-
}
1+
[
2+
{
3+
"type": "label",
4+
"name": "datasource/Timestream",
5+
"action": "addToProject",
6+
"addToProject": {
7+
"url": "https://github.com/orgs/grafana/projects/97"
178
}
9+
},
10+
{
11+
"type": "label",
12+
"name": "datasource/Timestream",
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+
}
1834
]

.github/workflows/issue_commands.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Run commands when issues are labeled
22
on:
33
issues:
44
types: [labeled, unlabeled]
5-
permissions:
6-
contents: read
7-
issues: write
5+
permissions: {}
86
jobs:
97
main:
8+
permissions:
9+
contents: read
10+
id-token: write # The "id-token: write" permission is required by "get-vault-secrets" action
11+
issues: write
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Checkout Actions
@@ -27,10 +29,10 @@ jobs:
2729
AWS_DS_TOKEN_CREATOR_PEM=aws-ds-token-creator:pem
2830
- name: 'Generate token'
2931
id: generate_token
30-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
32+
uses: actions/create-github-app-token@v2
3133
with:
32-
app_id: ${{ env.AWS_DS_TOKEN_CREATOR_ID }}
33-
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 }}
3436
- name: Run Commands
3537
uses: ./actions/commands
3638
with:

0 commit comments

Comments
 (0)