mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
feat(inputs): make github-token required
- to perform any failure action such as labeling, closing a PR, or leaving just a comment a token is required. Also many valuable checks, such as minGlobalMergeRatio, are only possible with a GitHub token.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ inputs:
|
|||||||
# Repo Auth Token
|
# Repo Auth Token
|
||||||
github-token:
|
github-token:
|
||||||
description: GitHub token used to authenticate API requests.
|
description: GitHub token used to authenticate API requests.
|
||||||
required: false
|
required: true
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
|
|
||||||
# General Settings
|
# General Settings
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ function parseList(raw: string): string[] {
|
|||||||
export function getSettings(): Settings {
|
export function getSettings(): Settings {
|
||||||
const settings = {
|
const settings = {
|
||||||
// Repo Auth Token
|
// Repo Auth Token
|
||||||
githubToken: core.getInput(Input.GithubToken),
|
githubToken: core.getInput(Input.GithubToken, { required: true }),
|
||||||
|
|
||||||
// General Settings
|
// General Settings
|
||||||
maxFailures: parseInt(core.getInput(Input.MaxFailures)),
|
maxFailures: parseInt(core.getInput(Input.MaxFailures)),
|
||||||
|
|||||||
Reference in new issue
Block a user