Skip to content

Commit

Permalink
chore: comment-issues actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 15, 2024
1 parent fcfa224 commit 3d71c63
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/comment-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: comment-issues

on:
issues:
types:
- labeled

permissions:
issues: write

jobs:
missing-demo:
if: github.event.label.name == 'missing demo'

runs-on: ubuntu-latest

steps:
- name: add comment
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
An isolated working demo is required in order to analyze this issue.
You can easily create a demo on Codepen/JSFiddle/CodeSandBox by clicking the buttons on the top of every example in the documentation.
**Why this is important:**
- I do not have the time to reproduce every test case from scratch
- your bug might be related to your own application and not Photo Sphere Viewer (thus I will be unable to reproduce it)
- taking the time to create a demo yourself allows to take a step back and find the solution yourself
**DO'S and DON'TS:**
- DON'T use minified source files in your demo
- DON'T share your code inside a ZIP, I will only look at online demos
- DO isolate the viewer from the rest of the app, if possible
- DO describe the step-by-step workflow to reproduce the issue
2 changes: 1 addition & 1 deletion .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/stale@v9
with:
any-of-labels: 'awaiting answer'
any-of-labels: 'awaiting answer,missing demo'
days-before-stale: 7
days-before-close: 7
stale-issue-message: |
Expand Down

0 comments on commit 3d71c63

Please sign in to comment.