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

Bug Fixes and Dependency Updates #62

Merged
merged 10 commits into from
Jul 5, 2024
29 changes: 29 additions & 0 deletions .github/workflows/issue-attachments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Attachment Reminder

on:
issues:
types: [opened]

jobs:
remind:
runs-on: ubuntu-latest
steps:
- name: Check issue for attachments
uses: actions/github-script@v7
with:
script: |
const github = require('@actions/github');
const octokit = github.getOctokit();
const issue = await octokit.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number
});
if (!issue.data.attachments.length) {
await octokit.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: 'Please provide a screenshot of the in-app state and/or a copy of your local-rag.log file to help debug this issue. For more information, please checkout the [Troubleshooting Guide](docs/troubleshooting.md).'
});
}
Loading
Loading