Skip to content

Commit

Permalink
New Issue Workflow 0.6 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r authored Nov 12, 2024
1 parent 1f14db9 commit 3eef45a
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions .github/workflows/new-issue.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.5
# v0.6
name: New issue

on:
Expand All @@ -8,10 +8,18 @@ on:
jobs:
issueCreated:
runs-on: ubuntu-latest
if: ${{ !github.event.issue.pull_request && !startsWith(github.event.issue.title, 'Update stable version in repo') }}
if: ${{ !github.event.issue.pull_request && !startsWith(github.event.issue.title, 'Update stable version in repo') && github.actor != 'ioBroker-Bot' }}
permissions:
issues: write
steps:
- name: Create label (not beta version)
id: create_label_version
run: gh label create not-latest-version --description "Beta version not found in issue" --color B02727 --force
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}

- name: Setup node
id: setup_node
uses: actions/setup-node@v4
Expand All @@ -33,22 +41,35 @@ jobs:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting a new issue @${{ github.actor }}!
1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
1. Please ensure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue.
3. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
----
*Otherwise this issue will be closed.*
- name: Create comment (beta version)
4. Check the changelog if the issue has already been covered in a previous release
*Otherwise this issue will be closed!*
- name: Create comment (not beta version)
id: create_comment_version
if: ${{ !contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting a new issue @${{ github.actor }}!
1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
**Important:** Ensure that you use the latest available **beta version** of this adapter (not the current stable version!): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}**
1. Please ensure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue.
3. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
4. Ensure that you use the latest available **beta version** of this adapter (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}**
----
*Otherwise this issue will be closed.*
4. Check the changelog if the issue has already been covered in a previous release
*Otherwise this issue will be closed!*
- name: Add label (not beta version)
id: add_label_version
if: ${{ !contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
run: gh issue edit "$NUMBER" --add-label not-latest-version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}

0 comments on commit 3eef45a

Please sign in to comment.