Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github issue template, hugo validation and stale checker #923

Merged
merged 6 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help us triage the problem and find a fix.
title: "[Bug]"
labels: bug, needs triage
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Version**
Full semver version of the operator being used e.g. v4.10.0, v5.0.0-rc0

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
etc.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Suspect component/Location where the bug might be occurring**
Please provide this if you know where this bug might occur otherwise leave as `unknown`

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Runtime (please complete the following information):**

- OS: [e.g. Linux,Fedora,Mac]
- Grafana Operator Version [e.g. v5.0.0]
- Environment: [e.g Openshift,Kubernetes,minikube etc. please specify versions]
- Deployment type: [e.g running the operator locally, or deployed]
- Other: [Other variables/things that might be relevant to this bug, versions of other services e.g. operator-sdk]

**Additional context**
Add any other context about the problem here.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, needs triage
assignees: ''

---

**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 [...]

**(If applicable)If your feature request solves a bug please provide a link to the community issue**

**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.

**Existing solutions**
If applicable please provide a link to an existing solution from a different project
42 changes: 42 additions & 0 deletions .github/workflows/pr-hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: validate hugo

on: pull_request

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.111.2
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Install Node.js dependencies
run: |
cd hugo
[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
cd hugo
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
35 changes: 35 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: "1 * * * *"

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue hasn't been updated for a while, marking as stale, please respond within the next 7 days to remove this label"
stale-pr-message: "This PR hasn't been updated for a while, marking as stale"
stale-issue-label: "stale"
stale-pr-label: "stale"
# mark issues and PR's as stale after this many days
days-before-stale: 30
# close issues and PR's that are marked as stale after this many days
days-before-close: 7
# don't mark triaged issues as stale
exempt-issue-labels: "triage/accepted"
# unmark as stale if someone responds
remove-issue-stale-when-updated: true
remove-pr-stale-when-updated: true