Wrong creation date being fetched for github repo using repos.get(owner, repo): Get a repository
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the repos.get call shown in the issue and compare its created_at value with GitHub's repository metadata documentation and the endpoint response. Determine whether ghapi is transforming the field or exposing GitHub's value as-is; done means the distinction between repository creation and initial commit dates is verified and the issue is answered or documented.
Written by the indexing model from the issue text.
Description
Hi All,
I wanted to get the date on which a github repository is created. However the date which I am getting is not corrrect, for example the repo https://github.com/pandas-dev/pandas/, the intial commit date is 31 Jul 2009, however it is shown as 2010-08-24 by the api.
Following is the code that I have used.
from ghapi.all import GhApi
from configparser import ConfigParser
config_parser = ConfigParser()
config_parser.read("config.ini")
access_token = config_parser["public"].get("access_token")
gh = GhApi(owner="pandas-dev", repo="pandas", token=access_token)
y = gh.repos.get(owner="pandas-dev", repo="pandas")
print(f"Creation date = {y['created_at']}")
The output is:
Creation date = 2010-08-24T01:37:33Z
This creation date is not correct, please let me know how to fetch the correct creation date of the Github repo or date of the intial commit.
Thanks
- Dominant language
- Python
- Stars
- 687
- Forks
- 69
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AnswerDotAI/ghapi
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
AnswerDotAI/ghapi#158 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AnswerDotAI/ghapi#120 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
AnswerDotAI/ghapi#208 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
AnswerDotAI/ghapi#201 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
AnswerDotAI/ghapi#186 ·
All issues in AnswerDotAI/ghapi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
modelscope/FunASR#3728 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
open-compass/opencompass#2655 ·