Explorar o código

Update issue templates and bots

Create Lock Threads Action
Update lock.yml
Update lock.yml
Update lock.yml
Create top-issues.yml
Update top-issues.yml
remove old bot configs


Create release-drafter.yml
Update release-drafter template


Update release-drafter.yml
Update release-drafter.yml
Update release-drafter.yml
Create create-release.yml
delete release drafter


Update create-release.yml
Update create-release.yml
Update create-release.yml
Create release-drafter.ym
Update create-release.yml
Update create-release.yml
Update create-release.yml
Update create-release.yml
Rename release-drafter.ym to release-drafter.yml
Update create-release.yml
removed top issues bot
Daniel Gibbs %!s(int64=5) %!d(string=hai) anos
pai
achega
18dd4f79d8

+ 5 - 1
.github/ISSUE_TEMPLATE/bug_report.md → .github/ISSUE_TEMPLATE/bug-report.md

@@ -1,8 +1,12 @@
 ---
-name: Bug report
+name: Bug Report
 about: Found a bug? Raise a report.
+title: "[BUG]"
+labels: 'type: bug'
+assignees: ''
 
 ---
+
 Issues raised here are **ONLY** for:
 * LinuxGSM bugs.
 * Feature suggestions.

+ 4 - 1
.github/ISSUE_TEMPLATE/feature_request.md → .github/ISSUE_TEMPLATE/feature-request.md

@@ -1,6 +1,9 @@
 ---
-name: Feature request
+name: Feature Request
 about: Suggest an idea for LinuxGSM.
+title: "[FEATURE]"
+labels: 'type: feature request'
+assignees: ''
 
 ---
 

+ 4 - 1
.github/ISSUE_TEMPLATE/new-server-request.md

@@ -1,6 +1,9 @@
 ---
-name: New server request
+name: New Server Request
 about: Suggest a new game server to be added.
+title: "[Server Request]"
+labels: 'type: game server request'
+assignees: ''
 
 ---
 

+ 0 - 38
.github/lock.yml

@@ -1,38 +0,0 @@
-# Configuration for Lock Threads - https://github.com/dessant/lock-threads
-
-# Number of days of inactivity before a closed issue or pull request is locked
-daysUntilLock: 365
-
-# Skip issues and pull requests created before a given timestamp. Timestamp must
-# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
-skipCreatedBefore: false
-
-# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
-exemptLabels: []
-
-# Label to add before locking, such as `outdated`. Set to `false` to disable
-lockLabel: false
-
-# Comment to post before locking. Set to `false` to disable
-lockComment: >
-  This thread has been automatically locked since there has not been
-  any recent activity after it was closed. Please open a new issue for
-  related bugs.
-
-# Assign `resolved` as the reason for locking. Set to `false` to disable
-setLockReason: false
-
-# Limit to only `issues` or `pulls`
-# only: issues
-
-# Optionally, specify configuration settings just for `issues` or `pulls`
-# issues:
-#   exemptLabels:
-#     - help-wanted
-#   lockLabel: outdated
-
-# pulls:
-#   daysUntilLock: 30
-
-# Repository to extend settings from
-# _extends: repo

+ 0 - 10
.github/no-response.yml

@@ -1,10 +0,0 @@
-# Configuration for probot-no-response - https://github.com/probot/no-response
-
-# Number of days of inactivity before an Issue is closed for lack of response
-daysUntilClose: 60
-# Label requiring a response
-responseRequiredLabel: "waiting response"
-# Comment to post when closing an Issue for lack of response. Set to `false` to disable
-closeComment: >
-  This issue has been automatically closed because there has been no response
-  to this issue and is now stale.

+ 2 - 2
.github/release-drafter.yml

@@ -1,4 +1,4 @@
 template: |
-  ## Changelog
+  ## What’s Changed
 
-  $CHANGES
+  $CHANGES

+ 17 - 0
.github/workflows/create-release.yml

@@ -0,0 +1,17 @@
+name: Release Drafter
+
+on:
+  push:
+    # branches to consider in the event; optional, defaults to all
+    branches:
+      - master
+jobs:
+  update_release_draft:
+    runs-on: ubuntu-latest
+    steps:
+      # Drafts your next Release notes as Pull Requests are merged into "master"
+      - uses: release-drafter/release-drafter@v5
+        with:
+          config-name: release-drafter.yml
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 21 - 0
.github/workflows/lock.yml

@@ -0,0 +1,21 @@
+name: 'Lock Threads'
+
+on:
+  schedule:
+    - cron: '0 0 * * *'     
+
+jobs:
+  lock:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: dessant/lock-threads@v2
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          issue-lock-comment: >
+            This issue has been automatically locked since there
+            has not been any recent activity after it was closed.
+            Please open a new issue for related bugs.
+          pr-lock-comment: >
+            This pull request has been automatically locked since there
+            has not been any recent activity after it was closed.
+            Please open a new issue for related bugs.