mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Workflows ensure explicit versions of actions
This commit is contained in:
18
.github/workflows/issues-auto-manager.yml
vendored
18
.github/workflows/issues-auto-manager.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Auto-Label Issues (Based on Issue Content)
|
- name: Auto-Label Issues (Based on Issue Content)
|
||||||
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
|
# only auto label based on issue content once, on open (to prevent re-labeling removed labels)
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
# Issue Labeler
|
# Issue Labeler
|
||||||
# https://github.com/marketplace/actions/regex-issue-labeler
|
# https://github.com/marketplace/actions/regex-issue-labeler
|
||||||
uses: github/issue-labeler@v3
|
uses: github/issue-labeler@v3.4
|
||||||
with:
|
with:
|
||||||
configuration-path: .github/issues-auto-labels.yml
|
configuration-path: .github/issues-auto-labels.yml
|
||||||
enable-versioned-regex: 0
|
enable-versioned-regex: 0
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
if: contains(fromJSON('["👩💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
|
if: contains(fromJSON('["👩💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name)
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'add-labels'
|
actions: 'add-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
|
if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩💻 Good First Issue"]'), github.event.label.name)
|
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩💻 Good First Issue"]'), github.event.label.name)
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
if: github.event.label.name == '🪲 Confirmed'
|
if: github.event.label.name == '🪲 Confirmed'
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -89,7 +89,7 @@ jobs:
|
|||||||
- name: Remove Stale Label
|
- name: Remove Stale Label
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -105,12 +105,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Post Issue Comments Based on Labels
|
- name: Post Issue Comments Based on Labels
|
||||||
# Label Commenter
|
# Label Commenter
|
||||||
# https://github.com/marketplace/actions/label-commenter
|
# https://github.com/marketplace/actions/label-commenter
|
||||||
uses: peaceiris/actions-label-commenter@v1
|
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||||
with:
|
with:
|
||||||
config_file: .github/issues-auto-comments.yml
|
config_file: .github/issues-auto-comments.yml
|
||||||
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Extract Linked Issues from Commit Message
|
- name: Extract Linked Issues from Commit Message
|
||||||
id: extract_issues
|
id: extract_issues
|
||||||
|
6
.github/workflows/job-close-stale.yml
vendored
6
.github/workflows/job-close-stale.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Mark Issues/PRs without Activity
|
- name: Mark Issues/PRs without Activity
|
||||||
# Close Stale Issues and PRs
|
# Close Stale Issues and PRs
|
||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 183
|
days-before-stale: 183
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Mark Issues/PRs Awaiting User Response
|
- name: Mark Issues/PRs Awaiting User Response
|
||||||
# Close Stale Issues and PRs
|
# Close Stale Issues and PRs
|
||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 7
|
days-before-stale: 7
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
- name: Mark Issues with Alternative Exists
|
- name: Mark Issues with Alternative Exists
|
||||||
# Close Stale Issues and PRs
|
# Close Stale Issues and PRs
|
||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 7
|
days-before-stale: 7
|
||||||
|
2
.github/workflows/on-close-handler.yml
vendored
2
.github/workflows/on-close-handler.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Remove Pending Labels on Close
|
- name: Remove Pending Labels on Close
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: remove-labels
|
actions: remove-labels
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
2
.github/workflows/on-open-handler.yml
vendored
2
.github/workflows/on-open-handler.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Label if Author is a Repo Maintainer
|
- name: Label if Author is a Repo Maintainer
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'add-labels'
|
actions: 'add-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
20
.github/workflows/pr-auto-manager.yml
vendored
20
.github/workflows/pr-auto-manager.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- name: Label PR Size
|
- name: Label PR Size
|
||||||
# Pull Request Size Labeler
|
# Pull Request Size Labeler
|
||||||
# https://github.com/marketplace/actions/pull-request-size-labeler
|
# https://github.com/marketplace/actions/pull-request-size-labeler
|
||||||
uses: codelytv/pr-size-labeler@v1
|
uses: codelytv/pr-size-labeler@v1.10.2
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
xs_label: '🟩 ⬤○○○○'
|
xs_label: '🟩 ⬤○○○○'
|
||||||
@@ -47,12 +47,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Apply Labels Based on Branch Name and Target Branch
|
- name: Apply Labels Based on Branch Name and Target Branch
|
||||||
# Pull Request Labeler
|
# Pull Request Labeler
|
||||||
# https://github.com/marketplace/actions/labeler
|
# https://github.com/marketplace/actions/labeler
|
||||||
uses: actions/labeler@v5
|
uses: actions/labeler@v5.0.0
|
||||||
with:
|
with:
|
||||||
configuration-path: .github/pr-auto-labels-by-branch.yml
|
configuration-path: .github/pr-auto-labels-by-branch.yml
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -65,12 +65,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Apply Labels Based on Changed Files
|
- name: Apply Labels Based on Changed Files
|
||||||
# Pull Request Labeler
|
# Pull Request Labeler
|
||||||
# https://github.com/marketplace/actions/labeler
|
# https://github.com/marketplace/actions/labeler
|
||||||
uses: actions/labeler@v5
|
uses: actions/labeler@v5.0.0
|
||||||
with:
|
with:
|
||||||
configuration-path: .github/pr-auto-labels-by-files.yml
|
configuration-path: .github/pr-auto-labels-by-files.yml
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
- name: Remove Stale Label
|
- name: Remove Stale Label
|
||||||
# 🤖 Issues Helper
|
# 🤖 Issues Helper
|
||||||
# https://github.com/marketplace/actions/issues-helper
|
# https://github.com/marketplace/actions/issues-helper
|
||||||
uses: actions-cool/issues-helper@v3
|
uses: actions-cool/issues-helper@v3.6.0
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
@@ -108,9 +108,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check Merge Blocking
|
- name: Check Merge Blocking
|
||||||
# GitHub Script
|
# GitHub Script
|
||||||
# https://github.com/marketplace/actions/github-scriptLabels
|
# https://github.com/marketplace/actions/github-script
|
||||||
id: label-check
|
id: label-check
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7.0.1
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const prLabels = context.payload.pull_request.labels.map(label => label.name);
|
const prLabels = context.payload.pull_request.labels.map(label => label.name);
|
||||||
@@ -153,12 +153,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
# Checkout
|
# Checkout
|
||||||
# https://github.com/marketplace/actions/checkout
|
# https://github.com/marketplace/actions/checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Post PR Comments Based on Labels
|
- name: Post PR Comments Based on Labels
|
||||||
# Label Commenter for PRs
|
# Label Commenter for PRs
|
||||||
# https://github.com/marketplace/actions/label-commenter
|
# https://github.com/marketplace/actions/label-commenter
|
||||||
uses: peaceiris/actions-label-commenter@v1
|
uses: peaceiris/actions-label-commenter@v1.10.0
|
||||||
with:
|
with:
|
||||||
config_file: .github/pr-auto-comments.yml
|
config_file: .github/pr-auto-comments.yml
|
||||||
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Check Merge Conflicts
|
- name: Check Merge Conflicts
|
||||||
# Label Conflicting Pull Requests
|
# Label Conflicting Pull Requests
|
||||||
# https://github.com/marketplace/actions/label-conflicting-pull-requests
|
# https://github.com/marketplace/actions/label-conflicting-pull-requests
|
||||||
uses: eps1lon/actions-label-merge-conflict@v3
|
uses: eps1lon/actions-label-merge-conflict@v3.0.3
|
||||||
with:
|
with:
|
||||||
dirtyLabel: '🚫 Merge Conflicts'
|
dirtyLabel: '🚫 Merge Conflicts'
|
||||||
repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user