mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 12:31:14 +00:00
Merge pull request #235 from adyyoung/patch-1
Add ability to reference other repos
This commit is contained in:
commit
f19a3c97fe
2 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,9 @@ inputs:
|
|||
delete:
|
||||
description: "delete the previously created comment"
|
||||
required: false
|
||||
repo:
|
||||
description: "Limited use on github enterprise. Note that When you trying changing a repo, be aware that GITHUB_TOKEN should also use that repo's. If not set, the current repo is used by default."
|
||||
required: false
|
||||
GITHUB_TOKEN:
|
||||
description: "set secrets.GITHUB_TOKEN here"
|
||||
required: true
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ async function run() {
|
|||
}
|
||||
|
||||
try {
|
||||
const repo = github.context.repo;
|
||||
const repo = core.getInput("repo", { required: false }) || github.context.repo;
|
||||
const message = core.getInput("message", { required: false });
|
||||
const path = core.getInput("path", { required: false });
|
||||
const header = core.getInput("header", { required: false }) || "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue