How to send Report bug from in-game form to Github Issues

Godot Version

Godot 4.2.2

Question


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?

If you want to do it in-game then you could use an url query

You can use String.uri_encode() to prepare the contents correctly and OS.shell_open() to open the url.

Example:

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)

With this method you can’t upload images though.

Thank you