-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from jonfairbanks/develop
Bug Fixes and Dependency Updates
- Loading branch information
Showing
5 changed files
with
1,214 additions
and
1,167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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).' | ||
}); | ||
} |
Oops, something went wrong.