-
Notifications
You must be signed in to change notification settings - Fork 55
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
TypeError: 'NoneType' object is not subscriptable #322
Comments
were you running this on an organization (github.com/org_name), list of repos (org/repository), or a personal namespace (zkoppert/repository)? Any other configuration options you can share? |
Apologies @zkoppert , that context would have been helpful! We currently run the step with this config: - name: Get issue metrics
uses: github/issue-metrics@v3
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
HIDE_TIME_TO_ANSWER: true
SEARCH_QUERY: "${{ steps.prod-repos.outputs.repos }} is:pr closed:${{ env.last_month }}" The value |
Theory: Maybe its possible that some repos have no events and so the Yet another theory: There is no user attached to the event so when it tries to access I'll start investigating those. @jmeridth any thoughts on these or other theories? |
Thanks @zkoppert, I'll fork this repo and add some logs to run on our pipeline and see what is being caught out |
Thanks @gilberthl-mh ! Appreciate the collaboration!! |
@zkoppert possibly related sigmavirus24/github3.py#988 Possible PR to fix already exists. Still deep diving to confirm. |
@gilberthl-mh Check out #325. That should allow us to catch this error and continue on instead of terminating the actions run. |
Thanks @zkoppert, that seems to bypass the above error. I think there's another instance where it's failing when looking at review comments for
|
Thanks for the update! I've added #326 to address. Definitely let me know if anything else comes up! |
Thank you very much @zkoppert, that has completely resolved the issue for us and we're able to run our action to completion 🙂 |
Glad to hear it!! |
Describe the bug
We have been running the
issue-metrics
action for a while now and it has been running without any issues, but just recently we've been receiving the error:TypeError: 'NoneType' object is not subscriptable
The full stack trace can be found below:
To Reproduce
I am unsure how best to reproduce this, I would need to find the PR that is causing this issue but I think the print issues is done fully before it gets to this code in the stack trace.
Expected behavior
Action to run to completion
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: