Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_setup_permission #49410

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

risemeup1
Copy link
Contributor

@risemeup1 risemeup1 commented Dec 28, 2022

PR types

others

PR changes

others

Describe

当改动了setup.py.in但是没有改动setup.py时,或者改动了setup.py没有同步改动setup.py.in时,需要approve

@paddle-bot
Copy link

paddle-bot bot commented Dec 28, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@risemeup1 risemeup1 changed the title test set_setup_permission Dec 29, 2022
elif [ "${HAS_MODIFIED_SETUP_IN}" == "" ] && [ "${GIT_PR_ID}" != "" ] && [ "${HAS_MODIFIED_SETUP}" != "" ];then
echo_line="You must have one RD (liujiaodi) approval for setup.py and setup.py.in are not modified synchronously"
check_approval 1 liujiaodi
elif [ "${HAS_MODIFIED_SETUP_IN}" != "" ] && [ "${GIT_PR_ID}" != "" ] && [ "${HAS_MODIFIED_SETUP}" != "" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

不用修改原始逻辑,新增一条 (modified_setup) || (modified_setup.in && not_modified_setup) approve检查即可

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,thks

if [ "${HAS_MODIFIED_SETUP_IN}" != "" ] && [ "${GIT_PR_ID}" != "" ]; then
HAS_MODIFIED_SETUP=`git diff --name-only upstream/$BRANCH | grep "${PADDLE_ROOT}/setup.py" || true`
if [ "${HAS_MODIFIED_SETUP_IN}" != "" ] && [ "${GIT_PR_ID}" != "" ] && [ "${HAS_MODIFIED_SETUP}" == "" ];then
echo_line="You must have one RD (liujiaodi) approval for setup.py and setup.py.in are not modified synchronously"
Copy link
Contributor

Choose a reason for hiding this comment

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

该用github id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,get

zhangbo9674
zhangbo9674 previously approved these changes Jan 3, 2023
Copy link
Contributor

@zhangbo9674 zhangbo9674 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhangbo9674 zhangbo9674 left a comment

Choose a reason for hiding this comment

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

LGTM

@risemeup1 risemeup1 merged commit 72597c3 into PaddlePaddle:develop Jan 3, 2023
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.

3 participants