~athorp96/sourcehut-issue-mirror-github-action

Github action to mirror new issues on github to your ticket tracker
Fix calls to fetch
Change node version to 16
import node-fetch

clone

read-only
https://git.sr.ht/~athorp96/sourcehut-issue-mirror-github-action
read/write
git@git.sr.ht:~athorp96/sourcehut-issue-mirror-github-action

You can also use your local clone with git send-email.

#Sourcehut Issue Mirror

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.

#Inputs

#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

#Example usage

- 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 }}