-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from 0xPolygonHermez/develop
Develop
- Loading branch information
Showing
30 changed files
with
1,700 additions
and
374 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# global owner | ||
* @krlosMata | ||
|
||
# src owners | ||
/src/ @krlosMata @laisolizq @invocamanman @ignasirv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Bug Report | ||
description: File a bug report | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
assignees: | ||
- krlosMata | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Fill in all necessary information to report a bug | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version are you using ? | ||
placeholder: 'ex: v1.0.0' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Explain the bug found and the expected result | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Please share detailed information about ho to reproduce the bug | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log | ||
description: Please copy and paste any relevant log output | ||
render: shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Feature Request | ||
description: File a bug report | ||
title: "[Feature]: " | ||
labels: ["feature"] | ||
assignees: | ||
- krlosMata | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Fill in all necessary information to request a feature | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version the features should be added ? | ||
placeholder: 'ex: v1.0.0' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Explain the feature | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Question | ||
description: Submit a question | ||
title: "[Question]: " | ||
labels: ["question"] | ||
assignees: | ||
- krlosMata | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Fill in all necessary information to submit a question | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version the question is refering to ? | ||
placeholder: 'ex: v1.0.0' | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: question | ||
attributes: | ||
label: Description | ||
description: Explain the question | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,9 @@ on: | |
branches: | ||
- main | ||
- develop | ||
repository_dispatch: | ||
types: [ok-to-test-command] | ||
|
||
jobs: | ||
trusted-build: | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
|
@@ -29,89 +26,14 @@ jobs: | |
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Set int-bot SSH key | ||
run: | | ||
touch /tmp/ssh-key | ||
echo "${{ secrets.INT_BOT_SSH_KEY }}" > /tmp/ssh-key | ||
chmod 400 /tmp/ssh-key | ||
eval "$(ssh-agent -s)" | ||
ssh-add /tmp/ssh-key | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: setup | ||
run: | | ||
eval "$(ssh-agent -s)" | ||
ssh-add /tmp/ssh-key | ||
npm install -g [email protected] | ||
npm run setup | ||
- name: eslint | ||
run: npm run eslint | ||
- name: test | ||
run: npm run test | ||
|
||
from-fork-build: | ||
if: | ||
github.event_name == 'repository_dispatch' && | ||
github.event.client_payload.slash_command.sha != '' && | ||
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.sha) | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Set int-bot SSH key | ||
run: | | ||
touch /tmp/ssh-key | ||
echo "${{ secrets.INT_BOT_SSH_KEY }}" > /tmp/ssh-key | ||
chmod 400 /tmp/ssh-key | ||
eval "$(ssh-agent -s)" | ||
ssh-add /tmp/ssh-key | ||
- name: Fork based /ok-to-test checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge' | ||
- name: setup | ||
run: | | ||
eval "$(ssh-agent -s)" | ||
ssh-add /tmp/ssh-key | ||
npm install -g [email protected] | ||
npm run setup | ||
- name: eslint | ||
run: npm run eslint | ||
- name: test | ||
run: npm run test | ||
# Update check run | ||
- uses: actions/github-script@v5 | ||
id: update-check-run | ||
if: ${{ always() }} | ||
env: | ||
number: ${{ github.event.client_payload.pull_request.number }} | ||
job: ${{ github.job }} | ||
# Conveniently, job.status maps to https://developer.github.com/v3/checks/runs/#update-a-check-run | ||
conclusion: ${{ job.status }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const { data: pull } = await github.rest.pulls.get({ | ||
...context.repo, | ||
pull_number: process.env.number | ||
}); | ||
const ref = pull.head.sha; | ||
const { data: checks } = await github.rest.checks.listForRef({ | ||
...context.repo, | ||
ref | ||
}); | ||
const check = checks.check_runs.filter(c => c.name === process.env.job); | ||
const { data: result } = await github.rest.checks.update({ | ||
...context.repo, | ||
check_run_id: check[0].id, | ||
status: 'completed', | ||
conclusion: process.env.conclusion | ||
}); | ||
return result; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.