-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add GitHub templates and workflows (#8)
* feat: Add GitHub templates and workflows
- Loading branch information
Rúben Carvalho
authored
Jan 15, 2024
1 parent
561637f
commit 9e033f6
Showing
9 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
* @cloudscape-design/cloudscape-dev |
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,62 @@ | ||
name: Bug Report | ||
description: Report a bug | ||
title: "[Bug]: " | ||
labels: bug | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Provide as much information as possible to help us investigate the bug. | ||
- type: dropdown | ||
id: browser | ||
attributes: | ||
label: Browser | ||
description: In which browser(s) are you experiencing the issue? | ||
multiple: true | ||
options: | ||
- Chrome | ||
- Safari | ||
- Firefox | ||
- Edge | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Package version | ||
description: Which version(s) are you using? | ||
placeholder: e.g. v3.0.122 | ||
validations: | ||
required: true | ||
- type: input | ||
id: react-version | ||
attributes: | ||
label: React version | ||
description: Which version of React are you using? | ||
placeholder: e.g. v18.0.1 | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Tell us more about the issue you are experiencing | ||
placeholder: What is the actual and expected behavior? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: source-code | ||
attributes: | ||
label: Source code | ||
description: Share links to your source code | ||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: Reproduction | ||
description: Recreate the issue using [CodeSandbox](https://codesandbox.io/). Use this [template](https://codesandbox.io/s/cloudscape-design-system-react-javascript-ljs1t7) as a starting point | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: Please confirm the following | ||
options: | ||
- label: I agree to follow this project's [Code of | ||
Conduct](https://github.com/cloudscape-design/components/blob/main/CODE_OF_CONDUCT.md) | ||
required: true | ||
- label: I checked the current issues on [this](https://github.com/cloudscape-design/code-view/issues) and | ||
[main](https://github.com/cloudscape-design/components/issues) repositories for duplicate problems |
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,27 @@ | ||
name: Feature request | ||
description: Request a feature | ||
title: "[Feature Request]: " | ||
labels: enhancement | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Use this template to request a new feature. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Describe the feature you request. Provide details on your use case, and how it would benefit your customers | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Code of Conduct | ||
description: Please confirm the following | ||
options: | ||
- label: I agree to follow this project's [Code of | ||
Conduct](https://github.com/cloudscape-design/components/blob/main/CODE_OF_CONDUCT.md) | ||
required: true | ||
- label: | ||
I checked the current issues on [this](https://github.com/cloudscape-design/code-view/issues) and | ||
[main](https://github.com/cloudscape-design/components/issues) repositories for duplicate requests |
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 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/cloudscape-design/components/discussions | ||
about: Ask a question about Cloudscape Design System |
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,35 @@ | ||
### Description | ||
|
||
<!-- Include a summary of the changes and the related issue. --> | ||
|
||
<!-- Also include relevant motivation and context. --> | ||
|
||
Related links, issue #, if available: n/a | ||
|
||
### How has this been tested? | ||
|
||
<!-- How did you test to verify your changes? --> | ||
|
||
<!-- How can reviewers test these changes efficiently? --> | ||
|
||
<details> | ||
<summary>Review checklist</summary> | ||
|
||
_The following items are to be evaluated by the author(s) and the reviewer(s)._ | ||
|
||
#### Correctness | ||
|
||
- _Changes include appropriate documentation updates._ | ||
- _Changes are backward-compatible if not indicated, see [`CONTRIBUTING.md`](https://github.com/cloudscape-design/components/blob/main/CONTRIBUTING.md#public-apis)._ | ||
- _Changes do not include unsupported browser features, see [`CONTRIBUTING.md`](https://github.com/cloudscape-design/components/blob/main/CONTRIBUTING.md#browsers-support)._ | ||
- _Changes were manually tested for accessibility, see [accessibility guidelines](https://cloudscape.design/foundation/core-principles/accessibility/)._ | ||
|
||
#### Testing | ||
|
||
- _Changes are covered with new/existing unit tests?_ | ||
- _Changes are covered with new/existing integration tests?_ | ||
</details> | ||
|
||
--- | ||
|
||
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. |
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,30 @@ | ||
name: Build, lint and test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
actions: read | ||
contents: read | ||
security-events: write | ||
deployments: write | ||
|
||
jobs: | ||
build: | ||
uses: cloudscape-design/actions/.github/workflows/build-lint-test.yml@main | ||
with: | ||
artifact-path: dist | ||
artifact-name: dev-pages | ||
deploy: | ||
needs: build | ||
uses: cloudscape-design/actions/.github/workflows/deploy.yml@main | ||
secrets: inherit | ||
with: | ||
artifact-name: dev-pages | ||
deployment-path: dist |
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,12 @@ | ||
# This workflow executes a full dry-run test, which means that all we build and test all @cloudscape-design packages in GitHub. | ||
# This ensures that the changes in the current package do not cause any regressions for its consumers. | ||
name: Dry-run | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
dry-run: | ||
uses: cloudscape-design/actions/.github/workflows/dry-run.yml@main |
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,12 @@ | ||
name: Lint PR | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
dry-run: | ||
uses: cloudscape-design/actions/.github/workflows/lint-pr.yml@main |
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,18 @@ | ||
# This workflow releases the current package to a dedicated private CodeArtifact repository. | ||
# One repository may publish more than one package. For more details refer to the release-package Action. | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "dev-v3-*" | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
release: | ||
uses: cloudscape-design/actions/.github/workflows/release.yml@main | ||
secrets: inherit |