Skip to content

Conversation

@vlonly
Copy link

@vlonly vlonly commented Jun 10, 2019

headlers = {'Accept':'application/vnd.github.hellcat-preview+json'}
return self.get('/repos/{}/{}/collaborators'.format(owner, repo), headlers=headlers, **kwargs)

def Check_if_a_user_is_a_collaborator(self,owner,repo,username,**kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

按照代码规范来,方法名首字母请改成小写字母

def Review_a_user_permission_level(self,owner,repo,username,**kwargs):
"""
https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
permission: admin, write, read, none
Copy link
Contributor

Choose a reason for hiding this comment

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

文档编写中的参数部分需要以:param开头,
例如:
def aaa(self,jjj,bbb):
"""
just a description
:param jjj: just a input
:param bbb: just another input
:return:
"""
pass

@zhangting85 zhangting85 changed the title Feature vl 2019.7.4已评审,请修改后重新提交 Jul 3, 2019
@zhangting85 zhangting85 merged commit ac17561 into TestUpCommunity:integration_1 Feb 2, 2020
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.

2 participants