Skip to content

Commit

Permalink
Cleanup workflows (#126)
Browse files Browse the repository at this point in the history
* use softprops/action-gh-release for creating a release

* add issue templates

* update dependabot settings

* update bug issue template

* use secret token
  • Loading branch information
idaho committed Dec 20, 2023
1 parent 5eefd05 commit b298073
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 20 deletions.
70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: 🐞 Bug Report
description: Create a report to help us improve
title: "[Bug]: <title>"
labels: ["bug"]
body:
- type: checkboxes
attributes:
label: Requirements
options:
- label: I checked the troubleshooting section in the README to verify that I have the latest TrashCard version.
required: true
- label: I did a search to see if there is a similar issue or if a pull request is open.
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Context
description: |
If your issue is about a certain type of entity, please provide the entity state/attribute. You can find it in the [developer tools](https://my.home-assistant.io/redirect/developer_states/). Otherwise, you can leave this section blank.
value: |
YAML state
```yaml
```
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **Brower**: Chrome
- **HA Version**: 2022.11.0
- **TrashCard**: 1.3.0
value: |
- Browser:
- HA Version:
- TrashCard:
render: markdown
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 🚀 Feature request
description: Suggest an idea for this project
title: "[Feature]: <title>"
labels: ["feature"]
body:
- type: checkboxes
attributes:
label: Requirements
options:
- label: I have updated Mushroom to the latest available version
required: true
- label: I did a search to see if there is a similar issue or if a pull request is open.
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: >
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: >
A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: >
A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
attributes:
label: Additional context
description: >
Add any other context or screenshots about the feature request.
- type: markdown
attributes:
value: >
Thanks for contributing 🎉
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ updates:
- "idaho"
reviewers:
- "idaho"
commit-message:
prefix: "fix"
prefix-development: "chore"
labels:
- "dependencies"
pull-request-branch-name:
Expand Down
38 changes: 18 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Release

on: workflow_dispatch

on:
push:
tags:
- "*.*.*"
jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: |
npm install
- name: Building
run: |
npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_TOKEN }}
run: npx semantic-release
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
token: ${{ secrets.HASSIO_RELEASE_ACTION }}
files: dist/*.js

0 comments on commit b298073

Please sign in to comment.