• 大小: 5.29MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-31
  • 语言: 其他
  • 标签: rocketmq  

资源简介

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\.github\ISSUE_TEMPLATE.md
     文件        1537  2018-10-18 09:55  rocketmq-externals-master\.github\PULL_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-master\README.md
     目录           0  2018-10-18 09:55  rocketmq-externals-master\dev\
     文件       17496  2018-10-18 09:55  rocketmq-externals-master\dev\merge_rocketmq_pr.py
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\
     文件          23  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\.gitignore
     文件         322  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\.travis.yml
     文件       29843  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\LICENSE
     文件         176  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\NOTICE
     文件        2169  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\README.md
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\doc\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\doc\1_0_0\
     文件        3824  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\doc\1_0_0\Milestone.md
     文件        2961  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\doc\1_0_0\UserGuide_CN.md
     文件        2846  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\doc\1_0_0\UserGuide_EN.md
     文件       11424  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\pom.xml
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\docker\
     文件         169  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\docker\Dockerfile
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\org\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\org\apache\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\org\apache\rocketmq\
     目录           0  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\org\apache\rocketmq\console\
     文件        1207  2018-10-18 09:55  rocketmq-externals-master\rocketmq-console\src\main\java\org\apache\rocketmq\console\App.java
............此处省略2364个文件信息

评论

共有 条评论