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

Log error: GitHub notification has error #107

Open
BeardedTinker opened this issue Sep 17, 2023 · 1 comment
Open

Log error: GitHub notification has error #107

BeardedTinker opened this issue Sep 17, 2023 · 1 comment
Assignees
Labels
Log error Errors from log files

Comments

@BeardedTinker
Copy link
Owner

There is following error in GitHub notifications script:

_Logger: homeassistant.helpers.template
Source: helpers/template.py:232
First occurred: 12:08:16 AM (18 occurrences)
Last logged: 9:00:00 AM

Template variable warning: 'dict object' has no attribute 'comment' when rendering '{%- if trigger.json.pull_request | default(false) -%} Pull request {% if trigger.json.comment %} New comment on {{trigger.json.pull_request.title }} - Pull Request #{{ trigger.json.pull_request.number}} from {{ trigger.json.comment.sender.login }} {%- else -%} {{ trigger.json.pull_request.title }} - Pull Request #{{ trigger.json.pull_request.number}} {{ trigger.json.action}} by {{trigger.json.sender.login}} {% endif -%} {{trigger.json.pull_request.html_url}} {%- elif trigger.json.issue | default(false) -%} {% if trigger.json.comment %} New comment on {{trigger.json.issue.title }} - Issue #{{ trigger.json.issue.number}} from {{ trigger.json.comment.user.login }} {% else -%} {{ trigger.json.issue.title }} - Issue #{{ trigger.json.issue.number}} {{ trigger.json.action }} by {{trigger.json.sender.login}} {% endif -%} {{trigger.json.issue.html_url}} {%- elif trigger.json.ref | default(false) %} {{ trigger.json.commits | count }} commits pushed to Home-Assistant_config: {% for commit in trigger.json.commits -%} {{commit.message}} {%- endfor %} https://github.com/BeardedTinker/Home-Assistant_Config/commits/master {%- endif %}'_

Need to go and check everything. Tried it to fix it quickly but failed.

@BeardedTinker BeardedTinker added the Log error Errors from log files label Sep 17, 2023
@BeardedTinker BeardedTinker self-assigned this Sep 17, 2023
Copy link

stale bot commented Mar 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Log error Errors from log files
Projects
None yet
Development

No branches or pull requests

1 participant