Comments (4)
Thanks for reporting the issue. I've tried with generating an empty list of issues but that works fine for me. Is there any specific config, user, gitlab instance or date range which triggers this? Does it happen for --issues-created
, --issues-commented
, --issues-closed
or all of them?
from did.
@psss --gitlab-issues-created
nor --gitlab-issues-closed
don't trigger the error. Only --gitlab-issues-commented
does.
I don't think I'm using any weird configs. For the date range I'm using just a --since
argument.
from did.
I've decided to look into this myself. The issue is caused by the Events API saying that I commented on an issue, but that issue is a task, which isn't returned by the Issues API, which causes get_project_issue()
to fail with StopIteration
, because an issue with that ID isn't returned by get_project_issues()
.
The reason this happens only with --gitlab-issues-commented
and not --gitlab-issues-created
or --gitlab-issues-closed
is that the latter 2 are checking for target_type=Note
, but tasks have target_type=WorkItem
, so they don't show up at all.
As per gitlab-org/gitlab#368055, tasks can't be accessed via the REST API yet, so there isn't a way to fix this properly, but at least did
shouldn't raise an Exception.
There are 2 ways to fix this:
- Ignore comments on issues that Gitlab API doesn't return (most likely tasks).
- Ignore when issue can't be fetched in
Note.iid()
.
The second option is better IMO, but it will require to print something else in the summary instead of the iid. Maybe reuse the "unknown" string? Or use #(task {id}
, id being the global ID?
* Issues commented on gitlab: 2
* namespace/project#001 - Issue title
* namespace/project#unknown - Task title
from did.
Created a PR for the change I proposed.
from did.
Related Issues (20)
- git plugin doesn't pull before fetching logs HOT 1
- plugins: gerrit: Deprecation Warning: FancyURLopener
- `did last friday` - only friday supported? HOT 1
- Filter git reporting by type? HOT 5
- [RFE] plugin for `patchwork` HOT 2
- Allow to report created github releases HOT 7
- Fedora 39 failure due to Python 3.12 changes HOT 1
- Gitea Support HOT 1
- Github "issues commented" includes comments by other users HOT 4
- Directory with many Git repositories isn't recognized HOT 1
- Show whether a Jira ticket got covered by a test HOT 1
- confluence plugin wrongly hint to try `kinit` when `auth_url` lead to a non existent page
- Need a New Release HOT 1
- Invalid plugin type 'jira' in section 'issues'. HOT 3
- Git plugin fails on merges in `--verbose` mode HOT 1
- Add `did` to brew repo HOT 2
- Merge is not working for github HOT 1
- Too recent GitHub pull requests included HOT 2
- Jira: "Issues updated" output is too general HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from did.