GitXplorerGitXplorer
j

update-issue-body

public
4 stars
0 forks
1 issues

Commits

List of commits on branch main.
Verified
04d5de9497fa264075b0d91ba018a73ca5ae5654

chore: update README.md

jjulien-deramond committed 4 months ago
Verified
1c3de73d87bd3d0b6aa42690c0940f41c74ffef1

chore: delete .github/FUNDING.yml

jjulien-deramond committed 6 months ago
Verified
932ea39937153f7c37a5c1d2b04f063d65d5cd35

chore: bump copyright to 2024

jjulien-deramond committed a year ago
Verified
6aaf5849faf4fdedb924e8ec3b86b493b04aaa9d

fix: `append-separator` → `prepend-separator` in README

jjulien-deramond committed a year ago
Verified
a7fae45395cac5a23318d38f7b09a58650dfe84f

feat: add prepend (#4)

jjulien-deramond committed a year ago
Verified
b39ab8ef4914a94cf5bdc6bd35ef725cb7542ac5

chore(release): v1.0.0

jjulien-deramond committed 2 years ago

README

The README file for this repository.

Update issue body

CI GitHub Marketplace

A GitHub action to update issue's body.

This is heavily based on peter-evans/create-or-update-comment.

Usage

Replace issue body

- name: Update Issue Body
  uses: julien-deramond/update-issue-body@v1
  with:
    issue-number: ${{ github.event.issue.number }}
    body: |
      **Edit**: Some new content
    edit-mode: replace

Append content to issue body

- name: Append Issue Body
  uses: julien-deramond/update-issue-body@v1
  with:
    issue-number: ${{ github.event.issue.number }}
    body: |
      **Edit**: Append some new content separated by a space
    edit-mode: append
    append-separator: space

Prepend content to issue body

- name: Prepend Issue Body
  uses: julien-deramond/update-issue-body@v1
  with:
    issue-number: ${{ github.event.issue.number }}
    body: |
      **Edit**: Prepend some new content separated by a space
    edit-mode: prepend
    prepend-separator: space

Action inputs

Name Description Default
token GITHUB_TOKEN (issues: write) or a repo scoped PAT. GITHUB_TOKEN
repository The full name of the repository in which to update the issue body. Current repository
issue-number The number of the issue to be updated.
body The issue body.
edit-mode The mode when updating the issue body, replace, append or prepend. append
append-separator The separator to use when appending to an existing issue body. (newline, space, none) newline
prepend-separator The separator to use when prepending to an existing issue body. (newline, space, none) newline

Accessing issues in other repositories

You can update issue body in another repository by using a PAT instead of GITHUB_TOKEN. The user associated with the PAT must have write access to the repository.

Sponsors

License

MIT