Skip to content

Commit 64c6761

Browse files
committed
fabric
0 parents  commit 64c6761

File tree

5,879 files changed

+1511372
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,879 files changed

+1511372
-0
lines changed

.dockerignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Copyright IBM Corp. All Rights Reserved.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
**/*test.go
8+
.git/objects/pack
9+
.github
10+
11+
# These are directories created by the make process
12+
bin
13+
build
14+
release
15+
16+
ci
17+
docs
18+
images
19+
release_notes
20+
vagrant

.gitattributes

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
*.block binary
4+
*.go text eol=lf
5+
*.js text eol=lf
6+
*.json text eol=lf
7+
*.md text eol=lf
8+
*.proto text eol=lf
9+
*.png binary
10+
*.pptx binary
11+
*.py text eol=lf
12+
*.rst text eol=lf
13+
*.sh text eol=lf
14+
*.txt text eol=lf
15+
*.yaml text eol=lf
16+
*.yml text eol=lf
17+
*.zip binary
18+
LICENSE text eol=lf
19+
vendor/** -text

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!--- DELETE MARKDOWN COMMENTS BEFORE SUBMITTING PULL REQUEST. -->
2+
3+
<!--- Provide a descriptive summary of your changes in the Title above. -->
4+
5+
#### Type of change
6+
7+
<!--- What type of change? Pick one option and delete the others. -->
8+
9+
- Bug fix
10+
- New feature
11+
- Improvement (improvement to code, performance, etc)
12+
- Test update
13+
- Documentation update
14+
15+
#### Description
16+
17+
<!--- Describe your changes in detail, including motivation. -->
18+
19+
#### Additional details
20+
21+
<!--- Additional implementation details or comments to reviewers. -->
22+
<!--- Summarize how the pull request was tested (if not obvious from commit). -->
23+
24+
#### Related issues
25+
26+
<!--- Include a link to any associated issues, e.g. Jira issue or approved rfc. -->
27+
28+
<!---
29+
#### Release Note
30+
If change impacts current users, uncomment Release Note heading and provide
31+
release note text.
32+
Also, copy release note text into the release specific /release_notes file.
33+
-->
34+
35+
<!--
36+
Checklist (DELETE AFTER READING):
37+
38+
- `Signed-off-by` added to commits (required for DCO check to pass)
39+
- Tests have been added/updated (required for bug fixes and features)
40+
- Unit and/or integration tests pass locally
41+
- Run linters and checks locally using 'make checks'
42+
- If change requires documentation updates, make updates in pull request,
43+
or open a separate issue and provide link
44+
- Squash commits into a single commit, unless a stack of commits is
45+
intentional to assist reviewers or to preserve review comments.
46+
- For additional contribution guidelines see the project's CONTRIBUTING.md file
47+
-->

.github/settings.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
5+
repository:
6+
name: fabric
7+
description: Hyperledger Fabric is an enterprise-grade permissioned distributed
8+
ledger framework for developing solutions and applications. Its modular and
9+
versatile design satisfies a broad range of industry use cases. It offers
10+
a unique approach to consensus that enables performance at scale while preserving
11+
privacy.
12+
homepage: https://wiki.hyperledger.org/display/fabric
13+
default_branch: main
14+
has_downloads: true
15+
has_issues: false
16+
has_projects: false
17+
has_wiki: false
18+
archived: false
19+
private: false
20+
allow_squash_merge: true
21+
allow_merge_commit: false
22+
allow_rebase_merge: true

.github/workflows/slash-commands.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright the Hyperledger Fabric contributors. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Slash Commands
6+
on:
7+
issue_comment:
8+
types:
9+
- created
10+
- edited
11+
jobs:
12+
notify:
13+
name: Invalid Issue Usage
14+
if: contains(github.event.comment.body, '/invalid') && github.event.issue.state == 'open'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Comment on Issue
18+
uses: lindluni/[email protected]
19+
with:
20+
action: comment
21+
message: |
22+
Thank you for opening this issue.
23+
24+
GitHub Issues is a tool for tracking bugs, feature requests, and work in general that relates directly to the Fabric codebase. It is not for general help requests. Please use one of the following forums to request help for your issue:
25+
26+
- Discord: https://discord.com/servers/hyperledger-foundation-905194001349627914
27+
- Fabric Mailing List: [email protected]
28+
- name: Close Issue
29+
uses: lindluni/[email protected]
30+
with:
31+
action: close

.github/workflows/trigger.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright the Hyperledger Fabric contributors. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
on:
6+
issue_comment:
7+
types: [created]
8+
name: Automatically Trigger Azure Pipeline
9+
jobs:
10+
trigger:
11+
name: TriggerAZP
12+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci-run')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Trigger Build
16+
run: |
17+
org=$(jq -r ".repository.owner.login" "${GITHUB_EVENT_PATH}")
18+
pr_number=$(jq -r ".issue.number" "${GITHUB_EVENT_PATH}")
19+
project=$(jq -r ".repository.name" "${GITHUB_EVENT_PATH}")
20+
repo=$(jq -r ".repository.full_name" "${GITHUB_EVENT_PATH}")
21+
22+
comment_url="https://api.github.com/repos/${repo}/issues/${pr_number}/comments"
23+
pr_url="https://api.github.com/repos/${repo}/pulls/${pr_number}"
24+
25+
pr_resp=$(curl "${pr_url}")
26+
sha=$(echo "${pr_resp}" | jq -r ".head.sha")
27+
28+
az extension add --name azure-devops
29+
echo ${AZP_TOKEN} | az devops login --organization "https://dev.azure.com/${org}"
30+
runs=$(az pipelines build list --project ${project} | jq -c ".[] | select(.sourceVersion | contains(\"${sha}\"))" | jq -r .status | grep -v completed | wc -l)
31+
if [[ $runs -eq 0 ]]; then
32+
az pipelines build queue --branch refs/pull/${pr_number}/merge --commit-id ${sha} --project ${project} --definition-name Fabric-Pull-Request
33+
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d '{"body": "AZP build triggered!"}' "${comment_url}"
34+
else
35+
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST -d '{"body": "AZP build already running!"}' "${comment_url}"
36+
fi
37+
env:
38+
AZP_TOKEN: ${{ secrets.AZP_TOKEN }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#SPDX-License-Identifier: Apache-2.0
2+
.#*
3+
*~
4+
*#
5+
/bin
6+
/build
7+
/.build
8+
*.cov
9+
/docs/build/*
10+
.DS_Store
11+
.*-dummy
12+
.gradle
13+
.idea
14+
*.iml
15+
*.log
16+
.project
17+
/release
18+
report.xml
19+
results.xml
20+
.settings
21+
.*.sw*
22+
tags
23+
.tags
24+
TESTS*.xml
25+
.tox/
26+
.vagrant/
27+
.vscode

.mergify.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
pull_request_rules:
4+
- name: Auto-Merge on Approving Label and Changes Limited to docs/ Folder
5+
conditions:
6+
- files~=^docs/
7+
- -files~=^(?!^docs).*
8+
- label=doc-merge
9+
actions:
10+
merge:
11+
method: rebase

0 commit comments

Comments
 (0)