mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-18 19:22:44 +08:00
Default token to github.token
This commit is contained in:
parent
da580b7831
commit
e9eda88d56
1
.github/workflows/create-comment.yml
vendored
1
.github/workflows/create-comment.yml
vendored
@ -18,7 +18,6 @@ jobs:
|
||||
- name: Create comment
|
||||
uses: ./
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: 1
|
||||
body: |
|
||||
This is a multi-line test comment
|
||||
|
2
.github/workflows/update-comment.yml
vendored
2
.github/workflows/update-comment.yml
vendored
@ -18,7 +18,6 @@ jobs:
|
||||
if: github.event.issue.number == 1
|
||||
uses: ./
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment-id: ${{ github.event.comment.id }}
|
||||
body: |
|
||||
**Edit:** Some additional info
|
||||
@ -28,6 +27,5 @@ jobs:
|
||||
if: github.event.issue.number == 1
|
||||
uses: ./
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment-id: ${{ github.event.comment.id }}
|
||||
reaction-type: heart
|
||||
|
@ -13,7 +13,6 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
|
||||
- name: Create comment
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-number: 1
|
||||
body: |
|
||||
This is a multi-line test comment
|
||||
@ -30,7 +29,6 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
|
||||
- name: Update comment
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment-id: 557858210
|
||||
body: |
|
||||
**Edit:** Some additional info
|
||||
@ -43,7 +41,6 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
|
||||
- name: Add reaction
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment-id: 557858210
|
||||
reaction-type: heart
|
||||
```
|
||||
@ -52,7 +49,7 @@ This action was created to help facilitate a GitHub Actions "ChatOps" solution i
|
||||
|
||||
| Name | Description | Default |
|
||||
| --- | --- | --- |
|
||||
| `token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). | |
|
||||
| `token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). | `GITHUB_TOKEN` |
|
||||
| `repository` | The full name of the repository in which to create or update a comment. | Current repository |
|
||||
| `issue-number` | The number of the issue or pull request in which to create a comment. | |
|
||||
| `comment-id` | The id of the comment to update. | |
|
||||
@ -76,7 +73,6 @@ jobs:
|
||||
- name: Add reaction
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment-id: ${{ github.event.comment.id }}
|
||||
reaction-type: eyes
|
||||
```
|
||||
|
@ -3,7 +3,7 @@ description: 'Create or update an issue or pull request comment'
|
||||
inputs:
|
||||
token:
|
||||
description: 'GITHUB_TOKEN or a repo scoped PAT.'
|
||||
required: true
|
||||
default: ${{ github.token }}
|
||||
repository:
|
||||
description: 'The full name of the repository in which to create or update a comment.'
|
||||
issue-number:
|
||||
|
Loading…
x
Reference in New Issue
Block a user