Skip to content

Commit

Permalink
Merge pull request #62 from jonfairbanks/develop
Browse files Browse the repository at this point in the history
Bug Fixes and Dependency Updates
  • Loading branch information
jonfairbanks authored Jul 5, 2024
2 parents c4373e7 + 16c226e commit e220b8b
Show file tree
Hide file tree
Showing 5 changed files with 1,214 additions and 1,167 deletions.
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

0 comments on commit e220b8b

Please sign in to comment.