Github API - commits by author

前端 未结 2 1674
梦如初夏
梦如初夏 2021-02-20 15:27

I am wondering if it is at all possible to use GitHub\'s API1 to retrieve a list of commits by a given author (for a specific repository, branch). One can grab recen

2条回答
  •  别跟我提以往
    2021-02-20 16:12

    Using the API I don't think there's another way besides getting the commit list and searching for a user.

    But with a cloned repository git log has a parameter that does this:

    --author=, --committer=  Limit the commits output to ones 
    with author/committer header lines that match the specified pattern (regular expression).
    

提交回复
热议问题