mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-17 03:25:43 +00:00
✨ minimize comment (#472)
* ✨ minimize comment * ✨ hide, hide_and_recreate, hide_classify option * ✅ update config test
This commit is contained in:
parent
3c38ed8cd4
commit
39c5b5dc77
12 changed files with 272 additions and 16 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as core from "@actions/core"
|
||||
import {ReportedContentClassifiers} from "@octokit/graphql-schema"
|
||||
import {context} from "@actions/github"
|
||||
import {readFileSync} from "fs"
|
||||
|
||||
|
|
@ -13,7 +14,14 @@ export const hideDetails = core.getBooleanInput("hide_details", {
|
|||
required: true
|
||||
})
|
||||
export const recreate = core.getBooleanInput("recreate", {required: true})
|
||||
export const hideAndRecreate = core.getBooleanInput("hide_and_recreate", {
|
||||
required: true
|
||||
})
|
||||
export const hideClassify = core.getInput("hide_classify", {
|
||||
required: true
|
||||
}) as ReportedContentClassifiers
|
||||
export const deleteOldComment = core.getBooleanInput("delete", {required: true})
|
||||
export const hideOldComment = core.getBooleanInput("hide", {required: true})
|
||||
export const githubToken = core.getInput("GITHUB_TOKEN", {required: true})
|
||||
|
||||
export const body = buildBody()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue