Skip to content

Commit

Permalink
Merge pull request #1 from asyncapi/master
Browse files Browse the repository at this point in the history
update from upstream
  • Loading branch information
GeraldLoeffler authored Apr 9, 2021
2 parents 5491240 + e3e0bda commit 23cbd47
Show file tree
Hide file tree
Showing 11 changed files with 435 additions and 85 deletions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: ""
about: ""
---

<!--
!!! IMPORTANT !!!
Before creating your issue:
* **Have a question?** Find community resources at https:/asyncapi/community/issues/1.
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly, find the source files at [asyncapi/spec/tree/master/spec](https://github.com/asyncapi/spec/tree/master/spec).
* **Improvements to documentation?** Head over to [asyncapi/website](https://github.com/asyncapi/website).
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/asyncapi/spec/blob/master/CONTRIBUTING.md) and prefer creating a Pull Request!
-->
33 changes: 24 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,45 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] "
labels: bug
title: ""
labels: '🐞 Bug'
assignees: ''

---

**Describe the bug**
<!--
!!! IMPORTANT !!!
Before creating your issue:
* **Have a question?** Find community resources at https:/asyncapi/community/issues/1.
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly, find the source files at [asyncapi/spec/tree/master/spec](https://github.com/asyncapi/spec/tree/master/spec).
* **Improvements to documentation?** Head over to [asyncapi/website](https://github.com/asyncapi/website).
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/asyncapi/spec/blob/master/CONTRIBUTING.md) and prefer creating a Pull Request!
-->

### Describe the bug
A clear and concise description of what the bug is.

**To Reproduce**
### To Reproduce
Steps to reproduce the behavior:
1. Create a document with '...'
2. Try to change to '....'
3. Try to validate the document doing '....'
4. See error

**Expected behavior**
### Expected behavior
A clear and concise description of what you expected to happen.

**Sample document**
### Sample document
If applicable, add an AsyncAPI document illustrating the problem.

**Screenshots**
### Screenshots
If applicable, add screenshots to help explain your problem.

**Additional context**
### Additional context
Add any other context about the problem here.
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 💡 Proposal (RFC 1)
about: See CONTRIBUTING.md
title: ""
labels: '💡 Proposal (RFC 1)'
assignees: ''
---

<!--
!!! IMPORTANT !!!
Before creating your issue:
* **Have a question?** Find community resources at https:/asyncapi/community/issues/1.
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly, find the source files at [asyncapi/spec/tree/master/spec](https://github.com/asyncapi/spec/tree/master/spec).
* **Improvements to documentation?** Head over to [asyncapi/website](https://github.com/asyncapi/website).
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/asyncapi/spec/blob/master/CONTRIBUTING.md) and prefer creating a Pull Request!
-->
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Question
about: A question about the spec or processes
title: ""
labels: '❔ Question'
assignees: ''
---

<!--
!!! IMPORTANT !!!
Before creating your issue:
* **Have a question?** Find community resources at https:/asyncapi/community/issues/1.
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly, find the source files at [asyncapi/spec/tree/master/spec](https://github.com/asyncapi/spec/tree/master/spec).
* **Improvements to documentation?** Head over to [asyncapi/website](https://github.com/asyncapi/website).
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/asyncapi/spec/blob/master/CONTRIBUTING.md) and prefer creating a Pull Request!
-->
46 changes: 0 additions & 46 deletions .github/ISSUE_TEMPLATE/review.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/strawman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 💭 Strawman (RFC 0)
about: See CONTRIBUTING.md
title: ""
labels: '💭 Strawman (RFC 0)'
assignees: ''
---

<!--
!!! IMPORTANT !!!
Before creating your issue:
* **Have a question?** Find community resources at https:/asyncapi/community/issues/1.
* **Found an editing mistake?** Create a Pull Request with the edited fix. The Github UI allows you to edit files directly, find the source files at [asyncapi/spec/tree/master/spec](https://github.com/asyncapi/spec/tree/master/spec).
* **Improvements to documentation?** Head over to [asyncapi/website](https://github.com/asyncapi/website).
* **Feature request?** First read [asyncapi/spec/blob/master/CONTRIBUTING.md](https://github.com/asyncapi/spec/blob/master/CONTRIBUTING.md) and prefer creating a Pull Request!
-->
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: ""
---

---

**Related issue(s):**

---

<!--
1. Make sure you craft a good description!
2. Is it a Strawman proposal (RFC 0)? Add the 💭 Strawman (RFC 0) label.
3. Is it a Proposal (RFC 1)? Add the 💡 Proposal (RFC 1) label.
4. Is it just an editorial fix, typo, or something that doesn't change the spec behavior? Add the ✏️ Editorial label.
-->
10 changes: 3 additions & 7 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Automerge release bump PR

on:
pull_request:
pull_request_target:
types:
- labeled
- unlabeled
Expand All @@ -17,10 +17,6 @@ on:
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}

jobs:

Expand All @@ -29,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Autoapproving
uses: hmarr/auto-approve-action@v2.0.0
uses: hmarr/auto-approve-action@v2
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -39,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Automerging
uses: pascalgn/automerge-action@v0.7.5
uses: pascalgn/automerge-action@v0.13.0
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/if-go-pr-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#This action is centrally managed in https:/asyncapi/.github/
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
#It does magic only if there is go.mod file in the root of the project
name: PR testing - if Go project

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
lint:
if: github.event.pull_request.draft == false
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check if Go project and has go.mod
id: gomod
run: test -e ./go.mod && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
shell: bash
- if: steps.gomod.outputs.exists == 'true'
name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.16
- if: steps.gomod.outputs.exists == 'true'
name: golangci-lint
uses: golangci/golangci-lint-action@v2 # golangci-lint version extracted from go.mod. `latest` if missing.
with:
skip-go-installation: true # we wanna control the version of Go in use

test:
if: github.event.pull_request.draft == false
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check if Go project and has go.mod
id: gomod
run: test -e ./go.mod && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
shell: bash
- if: steps.gomod.outputs.exists == 'true'
name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.16
- if: steps.gomod.outputs.exists == 'true'
name: Build
run: go build -v ./...
- if: steps.gomod.outputs.exists == 'true'
name: Test
run: go test -v ./...

Loading

0 comments on commit 23cbd47

Please sign in to comment.