We courage you submit your spec file into this repository as soon as possible.
我们鼓励您尽快提交 spec 文件到这个代码仓中.
This is a automatic advise from openEuler-Advisor. If you think the advise is not correct, please fill an issue at https://gitee.com/openeuler/openEuler-Advisor to help us improve.
We found this issue has been open for {days} days.
If you have any problems to implement it, please let the community known.
We'll try to help.
This is a automatic advise from openEuler-Advisor. If you think the advise is not correct, please fill an issue at https://gitee.com/openeuler/openEuler-Advisor to help us imporove.
Yours openEuler Advisor.
"""
if__name__=="__main__":
pars=argparse.ArgumentParser()
pars.add_argument("repo",type=str,help="Repo to be checked")
pars.add_argument("-p","--push",help="Push the advise to gitee.com/src-openeuler",action="store_true")
args=pars.parse_args()
my_gitee=gitee.Gitee()
try:
spec_string=my_gitee.get_spec(args.repo)
excepturllib.error.HTTPError:
spec_string=""
ifspec_string=="":
print("no spec file found for {repo} project".format(repo=args.repo))
ifargs.push:
issues=my_gitee.get_issues(args.repo)
forissueinissues:
ifissue["title"]=="Submit spec file into this repository":
opts.on("-p","--push","Push the advise to gitee.com/src-openeuler")do|v|
options[:push]=v
end
opts.on("-r","--repo REPO_NAME","Repo to check upstream info")do|n|
puts"Checking #{n}"
options[:repo]=n
end
opts.on("-h","--help","Prints this help")do
putsopts
exit
end
end.parse!
ifnotoptions[:repo]then
puts"Missing repo name\n"
exit1
end
specfile=download_spec(options[:repo])
ifspecfile==""then
puts"no spec file found for #{options[:repo]} project\n"
ifoptions[:push]then
puts"Push this advise to gitee\n"
ad=Advisor.new
ad.new_issue("src-openeuler",options[:repo],
"Submit spec file into this repository",
"Dear #{options[:repo]} maintainer:\n亲爱的 #{options[:repo]} 维护者:\n\n We found there is no spec file in this repository yet.\n我们发现这个代码仓中没有 spec 文件。\n\n Missing spec file implies that this components will not be integtaed into openEuler release, and your hardworking cannot help others.\n缺少 spec 文件意味着这个项目还不能被集成到 openEuler 项目中,而您的贡献还不能帮助到社区中的其他人。\n\n We courage you submit your spec file into this repository as soon as possible.\n我们鼓励您尽快提交 spec 文件到这个代码仓中\n\n This is a automatic advise from openEuler-Advisor. If you think the advise is not correct, please fill an issue at https\:\/\/gitee.com\/openeuler\/openEuler-Advisor to help us improve.\n这是一条由 openEuler-Advisor 自动生成的建议。如果您认为这个建议不对,请访问 https\:\/\/gitee.com\/openeuler\/openEuler-Advisor 来帮助我们改进。\n\n Yours openEuler Advisor.")