Skip to content

Commit e5b1dfd

Browse files
committed
init
0 parents  commit e5b1dfd

File tree

1,634 files changed

+385948
-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.

1,634 files changed

+385948
-0
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
doc
2+
**target*
3+
.idea/
4+
Dockerfile
5+
.dockerignore
6+
.local

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
[*]
3+
indent_style=tab
4+
indent_size=tab
5+
tab_width=4
6+
end_of_line=lf
7+
charset=utf-8
8+
trim_trailing_whitespace=true
9+
max_line_length=100
10+
insert_final_newline=true
11+
12+
[*.yml]
13+
indent_style=space
14+
indent_size=2
15+
tab_width=8
16+
end_of_line=lf
17+
18+
[*.sh]
19+
indent_style=space
20+
indent_size=2
21+
tab_width=8
22+
end_of_line=lf

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cargo.lock linguist-generated=true

.github/allowed-actions.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This is a whitelist of GitHub Actions that are approved for use in this project.
2+
// If a new or existing workflow file is updated to use an action or action version
3+
// not listed here, CI will fail.
4+
5+
module.exports = [
6+
'gaurav-nelson/github-action-markdown-link-check@7481451f70251762f149d69596e3e276ebf2b236', // gaurav-nelson/[email protected]
7+
]

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
labels: ["A2-insubstantial", "B0-silent", "C1-low"]
6+
schedule:
7+
interval: "daily"
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# If the author of the issues is not a contributor to the project, label
2+
# the issue with 'Z0-unconfirmed'
3+
4+
name: Label New Issues
5+
on:
6+
issues:
7+
types: [opened]
8+
9+
jobs:
10+
label-new-issues:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Label drafts
14+
uses: andymckay/labeler@master
15+
if: github.event.issue.author_association == 'NONE'
16+
with:
17+
add-labels: 'Z0-unconfirmed'

.github/workflows/auto-label-prs.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Label PRs
2+
on:
3+
pull_request:
4+
types: [opened,ready_for_review]
5+
6+
jobs:
7+
label-new-prs:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Label drafts
11+
uses: andymckay/labeler@master
12+
if: github.event.pull_request.draft == true
13+
with:
14+
add-labels: 'A3-inprogress'
15+
remove-labels: 'A0-pleasereview'
16+
- name: Label PRs
17+
uses: andymckay/labeler@master
18+
if: github.event.pull_request.draft == false && ! contains(github.event.pull_request.labels.*.name, 'A2-insubstantial')
19+
with:
20+
add-labels: 'A0-pleasereview'
21+
remove-labels: 'A3-inprogress'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Notify devops when burn-in label applied
2+
on:
3+
pull_request:
4+
types: [labeled]
5+
6+
jobs:
7+
notify-devops:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Notify devops
11+
if: github.event.label.name == 'A1-needsburnin'
12+
uses: s3krit/[email protected]
13+
with:
14+
room_id: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ROOM_ID }}
15+
access_token: ${{ secrets.POLKADOT_DEVOPS_MATRIX_ACCESS_TOKEN }}
16+
message: "@room Burn-in request received for [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
17+
server: "matrix.parity.io"

.github/workflows/md-link-check.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Links
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
markdown-link-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: gaurav-nelson/github-action-markdown-link-check@7481451f70251762f149d69596e3e276ebf2b236
17+
with:
18+
use-quiet-mode: 'yes'
19+
config-file: '.github/workflows/mlc_config.json'

.github/workflows/mlc_config.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^https://crates.io",
5+
}
6+
]
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Polkadot Companion and Label
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
check_status:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Monitor the status of the gitlab-check-companion-build job
12+
uses: s3krit/[email protected]
13+
id: 'check-companion-status'
14+
with:
15+
authToken: ${{ secrets.GITHUB_TOKEN }}
16+
ref: ${{ github.event.pull_request.head.sha }}
17+
contexts: 'continuous-integration/gitlab-check-polkadot-companion-build'
18+
timeout: 1800
19+
notPresentTimeout: 3600 # It can take quite a while before the job starts on Gitlab when the CI queue is large
20+
failureStates: failure
21+
interruptedStates: error # Error = job was probably cancelled. We don't want to label the PR in that case
22+
pollInterval: 30
23+
- name: Label success
24+
uses: andymckay/labeler@master
25+
if: steps.check-companion-status.outputs.result == 'success'
26+
with:
27+
remove-labels: 'A7-needspolkadotpr'
28+
- name: Label failure
29+
uses: andymckay/labeler@master
30+
if: steps.check-companion-status.outputs.result == 'failure'
31+
with:
32+
add-labels: 'A7-needspolkadotpr'

.github/workflows/release-bot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Pushes release updates to a pre-defined Matrix room
2+
on:
3+
release:
4+
types:
5+
- edited
6+
- prereleased
7+
- published
8+
jobs:
9+
ping_matrix:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: send message
13+
uses: s3krit/[email protected]
14+
with:
15+
room_id: ${{ secrets.MATRIX_ROOM_ID }}
16+
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
17+
message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}<br/>Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})<br/><br/>***Description:***<br/>${{github.event.release.body}}<br/>"
18+
server: "matrix.parity.io"

.github/workflows/release-tagging.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Github action to ensure the `release` tag always tracks latest release
2+
3+
name: Retag release
4+
5+
on:
6+
release:
7+
types: [ published ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Set Git tag
15+
uses: s3krit/walking-tag-action@master
16+
with:
17+
TAG_NAME: release
18+
TAG_MESSAGE: Latest release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger pipeline for review
2+
3+
on:
4+
pull_request:
5+
types: [ready_for_review]
6+
7+
jobs:
8+
trigger:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Trigger pipeline
13+
run: |
14+
curl -X POST \
15+
-F token="$TOKEN" \
16+
-F ref="$REF" \
17+
https://gitlab.parity.io/api/v4/projects/145/trigger/pipeline
18+
env:
19+
REF: ${{ github.event.number }}
20+
TOKEN: ${{ secrets.GITLAB_TRIGGER_TOKEN }}

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/target/
2+
**/*.rs.bk
3+
*.swp
4+
.wasm-binaries
5+
pwasm-alloc/target/
6+
pwasm-libc/target/
7+
pwasm-alloc/Cargo.lock
8+
pwasm-libc/Cargo.lock
9+
bin/node/runtime/wasm/target/
10+
**/._*
11+
**/.criterion/
12+
.vscode
13+
polkadot.*
14+
.DS_Store
15+
.idea/
16+
nohup.out
17+
rls*.log
18+
*.orig
19+
*.rej
20+
**/wip/*.stderr
21+
.local
22+
**/hfuzz_target/
23+
**/hfuzz_workspace/
24+
.cargo/
25+
.cargo-remote.toml

0 commit comments

Comments
 (0)