From 96f909a32fddfd4fd7f63065df5430c15f12405c Mon Sep 17 00:00:00 2001 From: Kate Brenner Date: Sun, 31 Mar 2024 10:59:59 -0400 Subject: [PATCH] add workflow for issue labeling/ add to project --- .github/ISSUE_TEMPLATE/bug_report.md | 36 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 ++++ .github/ISSUE_TEMPLATE/feature_request.md | 17 +++++++++++ .github/issue_commands.json | 34 +++++++++++++++++++++ .github/workflows/issue_commands.yml | 27 +++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/issue_commands.json create mode 100644 .github/workflows/issue_commands.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..f5f0d06 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,36 @@ +--- +name: Bug report +about: Report a bug +labels: ['grafana-aws-sdk-react', 'type/bug'] +--- + + + +**What happened**: + +**What you expected to happen**: + +**How to reproduce it (as minimally and precisely as possible)**: + +**Screenshots** + + + +**Anything else we need to know?**: + +**Environment**: + +- Grafana version: +- Sdk version: +- OS Grafana is installed on: +- User OS & Browser: +- Others: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ae02a9a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..1f6b279 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -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. diff --git a/.github/issue_commands.json b/.github/issue_commands.json new file mode 100644 index 0000000..b62db38 --- /dev/null +++ b/.github/issue_commands.json @@ -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" + } + } +] \ No newline at end of file diff --git a/.github/workflows/issue_commands.yml b/.github/workflows/issue_commands.yml new file mode 100644 index 0000000..51c6616 --- /dev/null +++ b/.github/workflows/issue_commands.yml @@ -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