mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Replace workflow secrets with automatic secret
This commit is contained in:
14
.github/workflows/issues-auto-manager.yml
vendored
14
.github/workflows/issues-auto-manager.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
configuration-path: .github/issues-auto-labels.yml
|
configuration-path: .github/issues-auto-labels.yml
|
||||||
enable-versioned-regex: 0
|
enable-versioned-regex: 0
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
label-on-labels:
|
label-on-labels:
|
||||||
name: 🏷️ Label Issues by Labels
|
name: 🏷️ Label Issues by Labels
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
labels: '👍 Approved'
|
labels: '👍 Approved'
|
||||||
|
|
||||||
- name: ❌ Remove progress labels when issue is marked done or stale
|
- name: ❌ Remove progress labels when issue is marked done or stale
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
labels: '🧑💻 In Progress,🤔 Unsure,🤔 Under Consideration'
|
labels: '🧑💻 In Progress,🤔 Unsure,🤔 Under Consideration'
|
||||||
|
|
||||||
- name: ❌ Remove temporary labels when confirmed labels are added
|
- name: ❌ Remove temporary labels when confirmed labels are added
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
labels: '🤔 Unsure,🤔 Under Consideration'
|
labels: '🤔 Unsure,🤔 Under Consideration'
|
||||||
|
|
||||||
- name: ❌ Remove no bug labels when "🪲 Confirmed" is added
|
- name: ❌ Remove no bug labels when "🪲 Confirmed" is added
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
labels: '✖️ Not Reproducible,✖️ Not A Bug'
|
labels: '✖️ Not Reproducible,✖️ Not A Bug'
|
||||||
|
|
||||||
remove-stale-label:
|
remove-stale-label:
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
labels: '⚰️ Stale,🕸️ Inactive,🚏 Awaiting User Response,🛑 No Response'
|
labels: '⚰️ Stale,🕸️ Inactive,🚏 Awaiting User Response,🛑 No Response'
|
||||||
|
|
||||||
@@ -113,4 +113,4 @@ jobs:
|
|||||||
uses: peaceiris/actions-label-commenter@v1.10.0
|
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.GITHUB_TOKEN }}
|
||||||
|
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: Label Linked Issues
|
- name: Label Linked Issues
|
||||||
id: label_linked_issues
|
id: label_linked_issues
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
for ISSUE in $(echo $issues | jq -r '.[]'); do
|
for ISSUE in $(echo $issues | jq -r '.[]'); do
|
||||||
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
|
||||||
|
6
.github/workflows/job-close-stale.yml
vendored
6
.github/workflows/job-close-stale.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9.1.0
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 183
|
days-before-stale: 183
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
operations-per-run: 30
|
operations-per-run: 30
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9.1.0
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 7
|
days-before-stale: 7
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
operations-per-run: 30
|
operations-per-run: 30
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
# https://github.com/marketplace/actions/close-stale-issues
|
# https://github.com/marketplace/actions/close-stale-issues
|
||||||
uses: actions/stale@v9.1.0
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 7
|
days-before-stale: 7
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
operations-per-run: 30
|
operations-per-run: 30
|
||||||
|
2
.github/workflows/on-close-handler.yml
vendored
2
.github/workflows/on-close-handler.yml
vendored
@@ -23,6 +23,6 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
||||||
labels: '🚏 Awaiting User Response,🧑💻 In Progress,📌 Keep Open,🚫 Merge Conflicts,🔬 Needs Testing,🔨 Needs Work,⚰️ Stale,⛔ Waiting For External/Upstream'
|
labels: '🚏 Awaiting User Response,🧑💻 In Progress,📌 Keep Open,🚫 Merge Conflicts,🔬 Needs Testing,🔨 Needs Work,⚰️ Stale,⛔ Waiting For External/Upstream'
|
||||||
|
2
.github/workflows/on-open-handler.yml
vendored
2
.github/workflows/on-open-handler.yml
vendored
@@ -24,6 +24,6 @@ jobs:
|
|||||||
uses: actions-cool/issues-helper@v3.6.0
|
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.GITHUB_TOKEN }}
|
||||||
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
|
||||||
labels: '👷 Maintainer'
|
labels: '👷 Maintainer'
|
||||||
|
@@ -23,6 +23,6 @@ jobs:
|
|||||||
uses: eps1lon/actions-label-merge-conflict@v3.0.3
|
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.GITHUB_TOKEN }}
|
||||||
commentOnDirty: >
|
commentOnDirty: >
|
||||||
⚠️ This PR has conflicts that need to be resolved before it can be merged.
|
⚠️ This PR has conflicts that need to be resolved before it can be merged.
|
||||||
|
Reference in New Issue
Block a user