GithubHelp home page GithubHelp logo

athorp96 / sourcehut_issue_mirror Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 2.22 MB

Github action to mirror new issues on github to your ticket tracker

Home Page: https://git.sr.ht/~athorp96/sourcehut-issue-mirror-github-action

License: MIT License

JavaScript 100.00%
sourcehut github-actions hacktoberfest

sourcehut_issue_mirror's Introduction

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

sourcehut_issue_mirror's People

Contributors

athorp96 avatar sobolevn avatar whereswaldon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sourcehut_issue_mirror's Issues

test_issue

There has to be a better testing story than this

Contribution and Issue Guidelines

Hello!

Thanks for your interest in the project!
Our issues are tracked on sourcehut.
If you submit an issue here it will be added there, but if you add a ticket directly on sourcehut you will be able to get updates on the issue as it is addressed.

Thanks!

Set foreign user when adding issue to tracker

When creating issues via the todo.sr.ht API, you can set the username field to a username on a "foreign" service. This is an undocumented feature. When you make this API request:

https://man.sr.ht/todo.sr.ht/api.md#post-apiuserusernametrackerstracker-nametickets

Set external_id to the username from GitHub in the format "github.com:username" (for me, it'd be "github.com:drewdevault", and set external_url to the URL for their GitHub profile (in my case, https://github.com/ddevault). This will correctly attribute the ticket to the foreign user in the todo.sr.ht UI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.