rocketmq-externals-master.zip


rocketmq-externals-master.zip rocketmq源码解析,最权威的rocketMQ源码大全
资源截图
代码片段和文件信息
#!/usr/bin/env python

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License Version 2.0
# (the “License“); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This script is a modified version of the one created by the Spark
# project (https://github.com/apache/spark/blob/master/dev/merge_spark_pr.py).

# Utility for creating well-formed pull request merges and pushing them to Apache.
#   usage: ./merge_rocketmq_pr.py    (see config env vars below)
#
# This utility assumes you already have local a RocketMQ git folder and that you
# have added remotes corresponding to both (i) the github apache RocketMQ
# mirror and (ii) the apache git repo.

import json
import os
import re
import subprocess
import sys
import urllib2

try:
    import jira.client
    JIRA_IMPORTED = True
except ImportError:
    JIRA_IMPORTED = False

# Location of your RocketMQ git development area
ROCKETMQ_HOME = os.environ.get(“ROCKETMQ_HOME“ os.getcwd())
# Remote name which points to the Gihub site
PR_REMOTE_NAME = os.environ.get(“PR_REMOTE_NAME“ “apache-github“)
# Remote name which points to Apache git
PUSH_REMOTE_NAME = os.environ.get(“PUSH_REMOTE_NAME“ “origin“)
# ASF JIRA username
JIRA_USERNAME = os.environ.get(“JIRA_USERNAME“ ““)
# ASF JIRA password
JIRA_PASSWORD = os.environ.get(“JIRA_PASSWORD“ ““)
# OAuth key used for issuing requests against the GitHub API. If this is not defined then requests
# will be unauthenticated. You should only need to configure this if you find yourself regularly
# exceeding your IP‘s unauthenticated request rate limit. You can create an OAuth key at
# https://github.com/settings/tokens. This script only requires the “public_repo“ scope.
GITHUB_OAUTH_KEY = os.environ.get(“GITHUB_OAUTH_KEY“)


GITHUB_base = “https://github.com/apache/incubator-rocketmq-externals/pull“
GITHUB_API_base = “https://api.github.com/repos/apache/incubator-rocketmq-externals“
JIRA_base = “https://issues.apache.org/jira/browse“
JIRA_API_base = “https://issues.apache.org/jira“
# Prefix added to temporary branches
BRANCH_PREFIX = “PR_TOOL“
DEVELOP_BRANCH = “master“


def get_json(url):
    try:
        request = urllib2.Request(url)
        if GITHUB_OAUTH_KEY:
            request.add_header(‘Authorization‘ ‘token %s‘ % GITHUB_OAUTH_KEY)
        return json.load(urllib2.urlopen(request))
    except urllib2.HTTPError as e:
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-18 09:55  rocketmq-externals-master
     目录           0  2018-10-18 09:55  rocketmq-externals-master.github
     文件        1099  2018-10-18 09:55  rocketmq-externals-master.githubISSUE_TEMPLATE.md
     文件        1537  2018-10-18 09:55  rocketmq-externals-master.githubPULL_REQUEST_TEMPLATE.md
     文件         125  2018-10-18 09:55  rocketmq-externals-master.gitignore
     文件         147  2018-10-18 09:55  rocketmq-externals-master.travis.yml
     文件        2033  2018-10-18 09:55  rocketmq-externals-masterREADME.md
     目录           0  2018-10-18 09:55  rocketmq-externals-masterdev
     文件       17496  2018-10-18 09:55  rocketmq-externals-masterdevmerge_rocketmq_pr.py
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-console
     文件          23  2018-10-18 09:55  rocketmq-externals-master
ocketmq-console.gitignore
     文件         322  2018-10-18 09:55  rocketmq-externals-master
ocketmq-console.travis.yml
     文件       29843  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoleLICENSE
     文件         176  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoleNOTICE
     文件        2169  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoleREADME.md
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoledoc
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoledoc1_0_0
     文件        3824  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoledoc1_0_0Milestone.md
     文件        2961  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoledoc1_0_0UserGuide_CN.md
     文件        2846  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consoledoc1_0_0UserGuide_EN.md
     文件       11424  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolepom.xml
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrc
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmain
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmaindocker
     文件         169  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmaindockerDockerfile
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjava
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjavaorg
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjavaorgapache
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjavaorgapache
ocketmq
     目录           0  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjavaorgapache
ocketmqconsole
     文件        1207  2018-10-18 09:55  rocketmq-externals-master
ocketmq-consolesrcmainjavaorgapache
ocketmqconsoleApp.java
............此处省略2364个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)