mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-14 18:16:52 +00:00
⏪️ Rollback base_url option
This commit is contained in:
parent
1926ccba5e
commit
6be016636e
4 changed files with 1 additions and 41 deletions
|
|
@ -8,7 +8,6 @@ export const pullRequestNumber =
|
|||
context?.payload?.pull_request?.number ||
|
||||
+core.getInput("number", {required: false})
|
||||
|
||||
export const baseUrl = core.getInput("base_url", {required: true})
|
||||
export const repo = buildRepo()
|
||||
export const header = core.getInput("header", {required: false})
|
||||
export const append = core.getBooleanInput("append", {required: true})
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import * as github from "@actions/github"
|
|||
import {
|
||||
append,
|
||||
getBody,
|
||||
baseUrl,
|
||||
deleteOldComment,
|
||||
githubToken,
|
||||
header,
|
||||
|
|
@ -57,7 +56,7 @@ async function run(): Promise<undefined> {
|
|||
throw new Error("hide and hide_and_recreate cannot be both set to true")
|
||||
}
|
||||
|
||||
const octokit = github.getOctokit(githubToken, {baseUrl})
|
||||
const octokit = github.getOctokit(githubToken)
|
||||
const previous = await findPreviousComment(
|
||||
octokit,
|
||||
repo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue