Преглед на файлове

fix: issue labeler

Delete create-release.yml
a
Daniel Gibbs преди 3 години
родител
ревизия
6b73179e5d
променени са 3 файла, в които са добавени 67 реда и са изтрити 86 реда
  1. 58 57
      .github/labeler.yml
  2. 0 23
      .github/workflows/create-release.yml
  3. 9 6
      .github/workflows/labeler.yml

+ 58 - 57
.github/labeler.yml

@@ -1,98 +1,99 @@
 # Add/remove 'critical' label if issue contains the words 'urgent' or 'critical'
-# Type
-"type: game server request":
-  - "/(Server Request)/i"
-"type: bug":
-  - "/(bug)/i"
-"type: feature request":
-  - "/(feature)/i"
+
 # Commands
 "command: backup":
-  - "/(backup)/i"
+  - "(backup)"
 "command: console":
-  - "/(console|tmux)/i"
+  - "(console|tmux)"
 "command: debug":
-  - "/(debug)/i"
+  - "(debug)"
 "command: details":
-  - "/(details)/i"
+  - "(details)"
 "command: fast-dl":
-  - "/(fast-dl|fastdl)/i"
+  - "(fast-dl|fastdl)"
 "command: install":
-  - "/(install)/i"
+  - "(install)"
 "command: mods":
-  - "/(mods)/i"
+  - "(mods)"
 "command: monitor":
-  - "/(monitor)/i"
+  - "(monitor)"
 "command: post-details":
-  - "/(post-details)/i"
+  - "(post-details)"
 "command: restart":
-  - "/(restart)/i"
+  - "(restart)"
 "command: send":
-  - "/(send)/i"
+  - "(send)"
 "command: skeleton":
-  - "/(skeleton)/i"
+  - "(skeleton)"
 "command: start":
-  - "/(start)/i"
+  - "(start)"
 "command: stop":
-  - "/(stop)/i"
+  - "(stop)"
 "command: update-lgsm":
-  - "/(update-lgsm)/i"
+  - "(update-lgsm)"
 "command: update":
-  - "/(update)/i"
+  - "(update)"
 "command: validate":
-  - "/(validate)/i"
+  - "(validate)"
 "command: wipe":
-  - "/(wipe)/i"
+  - "(wipe)"
 # Distros
 "distro: AlmaLinux":
-  - "/(Alma)/i"
+  - "(Alma)"
 "distro: Arch Linux":
-  - "/(Arch)/i"
+  - "(Arch)"
 "distro: CentOS":
-  - "/(CentOS)/i"
+  - "(CentOS)"
 "distro: Debian":
-  - "/(Debian)/i"
+  - "(Debian)"
 "distro: Fedora":
-  - "/(Fedora)/i"
+  - "(Fedora)"
 "distro: openSUSE":
-  - "/(openSUSE|suse)/i"
+  - "(openSUSE|suse)"
 "distro: Rocky Linux":
-  - "/(Rocky)/i"
+  - "(Rocky)"
 "distro: Slackware":
-  - "/(Slackware)/i"
+  - "(Slackware)"
 "distro: Ubuntu":
-  - "/(Ubuntu)/i"
+  - "(Ubuntu)"
+# Games
+"game: Ark: Survival Evolved":
+  - "(Ark: Survival Evolved|Ark)"
+"game: ARMA 3":
+  - "(ARMA 3)"
+"game: Assetto Corsa":
+  - "(Assetto Corsa)"
+"game: Avorion":
+  - "(Avorion)"
+"game: Ballistic Overkill":
+  - "(Ballistic Overkill)"
+"game: Barotrauma":
+  - "(Barotrauma)"
 # Info
 "info: alerts":
-  - "/(alert)/i"
+  - "(alert)"
 "info: dependency":
-  - "/(dependency|deps)/i"
+  - "(dependency|deps)"
 "info: docker":
-  - "/(docker)/i"
+  - "(docker)"
 "info: docs":
-  - "/(documentation|docs)/i"
+  - "(documentation|docs)"
 "info: email":
-  - "/(postfix|sendmail|exim|smtp)/i"
+  - "(postfix|sendmail|exim|smtp)"
 "info: query":
-  - "/(gamedig|gsquery)/i"
+  - "(gamedig|gsquery)"
 "info: steamcmd":
-  - "/(steamcmd)/i"
+  - "(steamcmd)"
 "info: systemd":
-  - "/(systemd)/i"
+  - "(systemd)"
 "info: tmux":
-  - "/(tmux)/i"
+  - "(tmux)"
 "info: website":
-  - "/(website)/i"
-# Games
-"game: Ark: Survival Evolved":
-  - "/(Ark: Survival Evolved|Ark)/i"
-"game: ARMA 3":
-  - "/(ARMA 3)/i"
-"game: Assetto Corsa":
-  - "/(Assetto Corsa)/i"
-"game: Avorion":
-  - "/(Avorion)/i"
-"game: Ballistic Overkill":
-  - "/(Ballistic Overkill)/i"
-"game: Barotrauma":
-  - "/(Barotrauma)/i"
+  - "(website)"
+# Type
+"type: game server request":
+  - "(Server Request)"
+"type: bug":
+  - "(bug)"
+"type: feature request":
+  - "(feature)"

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

@@ -1,23 +0,0 @@
-name: Release Drafter
-
-on:
-  push:
-    # branches to consider in the event; optional, defaults to all
-    branches:
-      - master
-permissions:
-  contents: read
-
-jobs:
-  update_release_draft:
-    permissions:
-      contents: write # for release-drafter/release-drafter to create a github release
-      pull-requests: write # for release-drafter/release-drafter to add label to PR
-    runs-on: ubuntu-latest
-    steps:
-      # Drafts your next Release notes as Pull Requests are merged into "master"
-      - uses: release-drafter/release-drafter@v5.22.0
-        with:
-          config-name: release-drafter.yml
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 9 - 6
.github/workflows/labeler.yml

@@ -2,6 +2,8 @@ name: "Issue Labeler"
 on:
   issues:
     types: [opened, edited]
+  pull_request:
+    types: [opened, edited]
 
 permissions:
   contents: read
@@ -13,9 +15,10 @@ jobs:
       issues: write # for github/issue-labeler to create or remove labels
     runs-on: ubuntu-latest
     steps:
-    - uses: github/issue-labeler@v2.6
-      with:
-        repo-token: "${{ secrets.GITHUB_TOKEN }}"
-        configuration-path: .github/labeler.yml
-        not-before:
-        enable-versioned-regex: 0
+      - uses: github/issue-labeler@v2.6
+        with:
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"
+          configuration-path: .github/labeler.yml
+          not-before:
+          enable-versioned-regex: 0
+          include-title: 1