A Github Action to create comments on your forgejo instance via API.
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-09 16:58:08 +02:00
.github/workflows Move to Git 2025-09-05 14:24:58 +02:00
dist Add debug info 2025-09-09 16:57:41 +02:00
src Add debug info 2025-09-09 16:57:41 +02:00
.gitignore Move to Git 2025-09-05 14:24:58 +02:00
.secrets.template Move to Git 2025-09-05 14:24:58 +02:00
.variables.template Move to Git 2025-09-05 14:24:58 +02:00
action.yml Rename project 2025-09-05 14:40:53 +02:00
LICENSE Initial commit 2025-09-05 14:09:16 +02:00
package-lock.json Update after renaming repo 2025-09-09 16:58:08 +02:00
package.json Update after renaming repo 2025-09-09 16:58:08 +02:00
README.md Rename project 2025-09-05 14:40:53 +02:00

forgejo-CreateComment

A Github Action to create comments on your forgejo instance via API.

Usage/Examples

Add FORGEJO_API_URL to your repo vars and FORGEJO_TOKEN to your repo secrets.

jobs:
  job1:
    runs-on: ubuntu-latest
    steps:
      - name: Run Forgejo API Action
        uses: timherrm/forgejo-CreateComment@v1
        with:
          api_url: ${{ vars.FORGEJO_API_URL }}
          token: ${{ secrets.FORGEJO_TOKEN }}
          repository: "owner/repo"
          index: 123
          body: "This is my comment"  #optional
          #debug: true                #optional

Inputs/Outputs

see action.yml

Local testing with act

Clone the project

  git clone https://github.com/timherrm/forgejo-CreateComment

Go to the project directory

  cd forgejo-CreateComment

Run

  brew install act node
  npm install @actions/core @actions/github axios @vercel/ncc
  npm init -y
  ncc build src/main.js -o dist
  act --var-file .variables

Resources

https://forgejo.your.host/api/swagger

https://forgejo.your.host/swagger.v1.json

Authors