AWS Codecommit,获取范围内所有代码提交的列表
我有一个包含存储库名称的列表,其中包含两个提交 ID,分别是 from 和 to。 repolist = [['repo1','123432','1231323'],['repo2','123123a','raera']]
我想获取提交 ID 之间的所有代码提交的列表 例如,当您查看“repo1”时,它应该显示 123432 和 1231323 之间的所有提交。并继续“repo2”
这是到目前为止我的代码。
for i in list:
respone = resources.get_commit(repositoryName=i[0], commitId=i[1])
parent = respone['commit']['parents']
我想查看父级并检查父级是否与 i[2]
相同,如果不相同,则运行 resources.get_commit(repositoryName=i[0], commitId=i[ 1])
但它会查看父级,而不是 i[1]
。
我看起来如何继续循环,直到父级和 i[2]
相同。
我查看了 codecommit 上的 boto3 文档,看起来目前它无法获取列表。
I have a list with repo name with two commitids which is from and to.repolist = [['repo1','123432','1231323'],['repo2','123123a','raera']]
I want to get the list of all code commits between the commit ids
For example when you look at 'repo1', it should show all the commits between 123432 and 1231323. and continue with 'repo2'
This is my code so far.
for i in list:
respone = resources.get_commit(repositoryName=i[0], commitId=i[1])
parent = respone['commit']['parents']
I want look into the parent and check if the parent is same as i[2]
if its not same then run the resources.get_commit(repositoryName=i[0], commitId=i[1])
but instead of i[1]
it will look at the parent.
How do I look keep looping until the parent and i[2]
are same.
I looked at boto3 documentation on codecommit, its looks like currently it doesn't have the ability to get the list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论