mirror of
https://github.com/mshick/add-pr-comment.git
synced 2026-01-01 06:29:49 +11:00
feat: only provide info logging when comments are not created
This commit is contained in:
parent
f97d0a5363
commit
a43c7002b8
2 changed files with 7 additions and 4 deletions
7
.github/workflows/test-pr.yml
vendored
7
.github/workflows/test-pr.yml
vendored
|
|
@ -6,8 +6,11 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ./
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Add Comment
|
||||
uses: ./
|
||||
with:
|
||||
message: |
|
||||
**Hello PULL!**
|
||||
|
|
|
|||
4
index.js
4
index.js
|
|
@ -47,7 +47,7 @@ async function run() {
|
|||
}
|
||||
|
||||
if (!issueNumber) {
|
||||
core.warning(
|
||||
core.info(
|
||||
"this action only works on pull_request events or other commits associated with a pull"
|
||||
);
|
||||
core.setOutput("comment-created", "false");
|
||||
|
|
@ -72,7 +72,7 @@ async function run() {
|
|||
);
|
||||
|
||||
if (filteredComments.length) {
|
||||
core.warning("the issue already contains this message");
|
||||
core.info("the issue already contains this message");
|
||||
core.setOutput("comment-created", "false");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue