Skip to content

feat: collect and add created_at and updated_at fields - fixes #90#106

Open
iarturo wants to merge 3 commits into
drkrillo:mainfrom
iarturo:feature/issue-date-field
Open

feat: collect and add created_at and updated_at fields - fixes #90#106
iarturo wants to merge 3 commits into
drkrillo:mainfrom
iarturo:feature/issue-date-field

Conversation

@iarturo
Copy link
Copy Markdown

@iarturo iarturo commented May 30, 2026

What does this PR do?

Adds created_at and updated_at fields to each issue collected from the GitHub API.
Both dates are now included in the CSV output and displayed in the README table.

Related Issue

Fixes #90

Checklist

  • I read the CONTRIBUTING.md
  • I ran the project locally and tested my changes
  • I verified my changes are working as expected
  • This PR description is written by me, not by AI

iarturo added 3 commits May 29, 2026 22:57
feat: extract created_at and updated_at from GitHub AP
feat: add created_at and updated_at columns to README template
test: update test_extract_issue_data with date fields
Copy link
Copy Markdown
Owner

@drkrillo drkrillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job overall! there is a bug though.

Left a couple of comments. Would be great if you could also solve the date formatting.

Thanks!

Comment thread app/core/api_handler.py
'title': row['title'].replace('|', '\\|'), # Escape '|' to avoid breaking markdown table rows
'url': row['url'],
'comments': row['comments'],
'created_at': row.get('created_at', ''),
Copy link
Copy Markdown
Owner

@drkrillo drkrillo May 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetic: bad indentation, you have to remove some whitespaces here

Comment thread app/core/api_handler.py
'comments',
'labels',
'state'
'created_at',
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: You are omitting the comma after state.

Comment thread app/core/api_handler.py
issue['comments'] = raw_issue[1]['comments']
issue['labels'] = [l['name'] for l in raw_issue[1].get('labels', [])]
issue['state'] = raw_issue[1].get('state', 'open')
issue['created_at'] = raw_issue[1].get('created_at', '')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability: Looking good. Would be great to clean up the datetime format a little though. Probably having YYYY-MM-DD is enough. As the workflow runs daily, I don't see the need of putting time in there.

"comments": 5,
"labels": [],
"state": "open",
"created_at": "2024-01-15T10:00:00Z",
Copy link
Copy Markdown
Owner

@drkrillo drkrillo May 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up:
Nice job adding the tests.
If you modify the date format as suggested, you'll need a minimum refactor here


## Good First Issues <sub><sub>Last run: {{today}}</sub></sub>

| Repo | Language | Title | Comments |
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Collect and add Issue Date as a new field.

2 participants