When I click on the report bug button, I want it to connect to Github Issues and appear in GithubIssue in my repository.
I find some ways to create issues, but I dont know how to connect Github Issues and Godot. Creating an issue - GitHub Docs
I already created the repository in Github. or Should I create the link to Github Repository instead of creating the form in the game?
extends Node
const ORGANIZATION = "example" # Change this
const REPOSITORY = "test-repository" # Change this
func _ready() -> void:
var title = "My game crashes!!!1!"
var description = """My issue description here
I'm having an issue :(
"""
var url = "https://github.com/{organization}/{repository}/issues/new?title={title}&body={description}".format({
organization = ORGANIZATION,
repository = REPOSITORY,
title = title.uri_encode(),
description = description.uri_encode()
})
OS.shell_open(url)