-
Notifications
You must be signed in to change notification settings - Fork 0
core: add default worklow and issue template #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Bug Report | ||
| description: File a bug report here | ||
| title: "[BUG]: " | ||
| labels: ["action: investigate"] | ||
| assignees: [] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Thanks for taking the time to fill out this bug report 🤗 | ||
| Make sure there aren't any open/closed issues for this topic 😃 | ||
|
|
||
| - type: textarea | ||
| id: bug-description | ||
| attributes: | ||
| label: Description of the bug | ||
| description: Give us a brief description of what happened and what should have happened | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: steps-to-reproduce | ||
| attributes: | ||
| label: Steps To Reproduce | ||
| description: Steps to reproduce the behavior. | ||
| placeholder: | | ||
| 1. Go to '...' | ||
| 2. Click on '...' | ||
| 3. Scroll down to '...' | ||
| 4. See error | ||
|
Comment on lines
+24
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not useful on a cli tool.. |
||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: additional-information | ||
| attributes: | ||
| label: Additional Information | ||
| description: | | ||
| Provide any additional information such as logs, screenshots, likes, scenarios in which the bug occurs so that it facilitates resolving the issue. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Enhancement Request | ||
| description: Request a new enhancement | ||
| title: "[ENHANCEMENT]: " | ||
| labels: ["action: triage"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update label |
||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Please make sure this feature request hasn't been already submitted by someone by looking through other open/closed issues | ||
|
|
||
| - type: textarea | ||
| id: description | ||
| attributes: | ||
| label: Description | ||
| description: Give us a brief description of the feature or enhancement you would like | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: additional-information | ||
| attributes: | ||
| label: Additional Information | ||
| description: Give us some additional information on the feature request like proposed solutions, links, screenshots, etc. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Feature Request | ||
| description: Request a new feature or enhancement | ||
| title: "[FEAT]: " | ||
| labels: ["action: triage"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update label |
||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Please make sure this feature request hasn't been already submitted by someone by looking through other open/closed issues | ||
|
|
||
| - type: textarea | ||
| id: description | ||
| attributes: | ||
| label: Description | ||
| description: Give us a brief description of the feature or enhancement you would like | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: additional-information | ||
| attributes: | ||
| label: Additional Information | ||
| description: Give us some additional information on the feature request like proposed solutions, links, screenshots, etc. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| main-file: | ||
| required: false | ||
| type: string | ||
| default: main.go | ||
| skip-build: | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| skip-release: | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| skip-package: | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| jobs: | ||
| build: | ||
| if: ${{ !inputs.skip-build }} | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.19 | ||
| cache: true | ||
| run: go build ${{ inputs.main-file }} | ||
|
|
||
| release: | ||
| if: ${{ !inputs.skip-release && github.ref == 'refs/heads/main' }} | ||
| uses: morty-faas/.github/.github/workflows/release-drafter.yml@main | ||
|
|
||
| package: | ||
| if: ${{ !inputs.skip-package && github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/') }} | ||
| uses: morty-faas/.github/.github/workflows/package-image.yml@main | ||
| needs: build | ||
| with: | ||
| artifact-id: build | ||
| artifact-download: true | ||
| artifact-download-dir: dist |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| artifact-download: | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| artifact-id: | ||
| required: false | ||
| type: string | ||
| artifact-download-dir: | ||
| required: false | ||
| type: string | ||
| dockerfile-path: | ||
| required: false | ||
| type: string | ||
| docker-metadata-flavor: | ||
| required: false | ||
| type: string | ||
|
|
||
| jobs: | ||
| package-image: | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Download artifacts | ||
| if: ${{ inputs.artifact-download }} | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: ${{ inputs.artifact-id }} | ||
| path: ${{ inputs.artifact-download-dir }} | ||
|
|
||
| - name: Log in to the Container Registry | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Extract metadata (tags, label) for Docker | ||
| id: meta | ||
| uses: docker/metadata-action@v4 | ||
| with: | ||
| images: ghcr.io/${{ github.repository }} | ||
| flavor: ${{ inputs.docker-metadata-flavor }} | ||
|
|
||
| - name: Build an push image | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| context: . | ||
| file: ${{ inputs.dockerfile-path }} | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| title-checker: | ||
| name: Check PR title | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
| steps: | ||
| - uses: aslafy-z/conventional-pr-title-action@v3 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| release-drafter: | ||
| permissions: | ||
| contents: write | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: release-drafter/release-drafter@v5 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update label