[Bug]: Backends provided no user object for <id> #65
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
name: Log Instructions | |
on: | |
issue_comment: | |
types: [created] | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
log-instructions: | |
runs-on: ubuntu-22.04 | |
if: contains(github.event.comment.body, '!log') | |
steps: | |
- name: Delete trigger comment | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const comment = context.payload.comment; | |
await github.rest.issues.deleteComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
comment_id: comment.id | |
}); | |
- name: Add log instructions | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const instructions = [ | |
'To help us better understand and diagnose the issue, please provide your Nextcloud logs by following these steps:', | |
'', | |
'1. Enable debug logging in your `config.php` file:', | |
'', | |
'```php', | |
'\'debug\' => true,', | |
'```', | |
'', | |
'2. Clear existing logs to ensure we only see relevant information:', | |
'', | |
'```bash', | |
'# For standard installations:', | |
'sudo rm /var/www/nextcloud/data/nextcloud.log', | |
'', | |
'# For Snap installations:', | |
'sudo rm /var/snap/nextcloud/current/nextcloud/data/nextcloud.log', | |
'```', | |
'', | |
'3. Reproduce the issue you\'re experiencing.', | |
'', | |
'4. Collect and share the contents of your new `nextcloud.log` file.', | |
'', | |
'5. After sharing the logs, remember to disable debug mode:', | |
'', | |
'```php', | |
'\'debug\' => false,', | |
'```', | |
'', | |
'> **Note**: Please make sure to review the logs and remove any sensitive information before sharing.' | |
].join('\n'); | |
await github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.issue.number, | |
body: instructions | |
}); |