Fix calls to fetch
Change node version to 16
import node-fetch
This action uses the sourcehut todo API to add a ticket to a tracker. Its inteded use is to mirror new issues from github to sourcehut.
title
Title of the issue
body
Body of the issue
submitter
Username of the submitter
tracker-owner
Account name of the tracker owner. Must be proceeded with "~"
tracker-name
Name of the tracker
oauth-token
OAuth Token for sr.ht
repo
Label for mirrored ticket
- uses: athorp96/sourcehut_issue_mirror@master
with:
title: ${{ github.event.issue.title}
body: ${{ github.event.issue.body}}
submitter: ${{ github.event.issue.user.login }}
tracker-owner: "~your-sr.ht-username"
tracker-name: "my-app-tracker"
oauth-token: ${{ secrets.SRHT_OAUTH_TOKEN }}
label: ${{ github.event.repository.name }}