Skip to content

Commit

Permalink
Sync workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed May 19, 2022
1 parent 5dc902f commit 4c8dbb4
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 96 deletions.
Original file line number Diff line number Diff line change
@@ -1,79 +1,68 @@
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
- Ross Power
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. email@example.com
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
label: What went wrong?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
placeholder: Tell us more about this potential bug.
validations:
required: true
body:
- type: textarea
id: repro
attributes:
label: Reproduction steps
description: "How do you trigger this bug? Please walk us through it step by step."
label: How can we reproduce this bug?
description: "How do you trigger this bug? Please walk us through it step-by-step."
value: |
1.
2.
3.
...
render: bash
validations:
required: true
- type: input
id: prevalence
attributes:
label: Bug prevalence
description: "How often do you or others encounter this bug?"
placeholder: "Whenever I visit the user account page (1-2 times a week)"
validations:
required: true
- type: dropdown
id: environment
attributes:
label: Environment
description: What environment was this bug first noticed on?
description: What environment does this bug affect?
options:
- testnet
- mainnet
- Mainnet
- Testnet
- Both mainnet/testnet
- Not applicable
validations:
required: true
- type: input
id: prevalence
attributes:
label: Bug prevalence
description: "How often do you or others encounter this bug?"
placeholder: "Whenever I visit the user account page (1-2 times a week)"
- type: dropdown
id: browsers
id: app-clients
attributes:
label: What browsers are you seeing the problem on?
label: Which browser/client application did you encounter the bug in? (if applicable)
description: "Tell us what app/client you found the bug in. You can select multiple options if necessary."
multiple: true
options:
- Firefox
- Chrome
- Chrome / Chromium
- Brave
- Safari
- Microsoft Edge
- Brave
- Mozilla Firefox
- API (RPC/REST/gRPC)
- Keplr/other wallet app
- Other
- Not applicable
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
description: Please copy-paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
Expand Down
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: true

contact_links:
- name: System Status
url: https://status.cheqd.net
about: System status reporting tool for cheqd services

- name: Technical Documentation
url: https://docs.cheqd.io
about: Technical Documentation for cheqd projects

- name: Community Slack
url: http://cheqd.link/join-cheqd-slack
about: Community Slack for Q&A and discussions
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Feature Request
description: Request a new feature
title: "[feature]: "
labels: ["feature-request"]
body:
- type: textarea
id: feature-info
attributes:
label: What is the feature you'd like to see?
description: Also tell what prompted this idea?
placeholder: I would like to see...
validations:
required: true
- type: textarea
id: examples
attributes:
label: Are there any examples of where similar features are available?
description: Feel free to provide any links, screenshots, mockups etc that would help illustrate this idea better.
placeholder: An example of this feature is...
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/cheqd/.github/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/features_request.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/linters/.commitlint.rules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
rules: {
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
'scope-case': [2, 'always', 'lower-case'],
'scope-empty': [1, 'never'],
'subject-case': [
2,
'always',
['sentence-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'header-max-length': [2, 'always', 100],
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
},
};
25 changes: 25 additions & 0 deletions .github/linters/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
run:
timeout: 5m


linters:
enable:
- deadcode
- errcheck
- gosimple
- gofumpt
- govet
- ineffassign
- misspell
- nestif
- staticcheck
- structcheck
- typecheck
- unused
- varcheck


linters-settings:
misspell:
ignore-words:
- cheqd
15 changes: 15 additions & 0 deletions .github/linters/.hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set threshold level (error | warning | info | style | ignore | none)
failure-threshold: warning

# List of ignored rules
# See list for reference: https://github.com/hadolint/hadolint#rules
ignored:

# Override default levels for specific rules
override:
error:
warning:
info:
- DL3008
- DL3027
style:
2 changes: 1 addition & 1 deletion .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ MD034: true

# Horizontal rule style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md035>
MD035:
style: '---'
style: 'consistent'

# Emphasis used instead of a heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md036>
MD036: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:

- name: Check docker building
working-directory: .
run: docker build -f docker/Dockerfile .
run: docker build -f docker/Dockerfile .
2 changes: 1 addition & 1 deletion .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
call-test:
name: "Tests"
needs: call-build
uses: ./.github/workflows/test.yml
uses: ./.github/workflows/test.yml
17 changes: 12 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Lint"
on: workflow_call
on:
workflow_call:
defaults:
run:
shell: bash
Expand Down Expand Up @@ -45,10 +46,10 @@ jobs:
go-version: '1.17'

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 5m0s
args: --config .github/linters/.golangci.yaml

super-lint:
name: "Super Linter"
Expand All @@ -70,11 +71,17 @@ jobs:
MULTI_STATUS: true

VALIDATE_BASH: true
VALIDATE_DOCKERFILE_HADOLINT: true
DOCKERFILE_HADOLINT_FILE_NAME: '../linters/.hadolint.yml'
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_JSON: true
VALIDATE_MARKDOWN: true
VALIDATE_OPENAPI: true
# VALIDATE_PROTOBUF: true
VALIDATE_PYTHON_PYLINT: true
VALIDATE_PYTHON_PYLINT: false
VALIDATE_TERRAFORM_TFLINT: false
VALIDATE_TERRAGRUNT: false
VALIDATE_TSX: false
VALIDATE_TYPESCRIPT_ES: false
VALIDATE_XML: true
VALIDATE_YAML: true

0 comments on commit 4c8dbb4

Please sign in to comment.