AmProsius / gothic-1-community-patch

Gothic 1 Community Patch
Other
50 stars 4 forks source link

Automate new bugfix #288

Open AmProsius opened 2 years ago

AmProsius commented 2 years ago

To speed up bug fixing, the process to create the new fix can (potentially) be covered with a script. These are the steps to create the files and file changes for a new fix:

Variables to know:

Things to consider:

/*

/*

szapp commented 2 years ago

I added another step:

  1. Optionally turn the issue into a pull request: hub pull-request -i XXX.
szapp commented 2 years ago

I wonder if this should be a local script, that a collaborator triggers on their own machine, or a Github bot that commits the automated changes and turns the issue into a PR once triggered.

The latter would have the advantage that all information is available to the bot, and it can automatically generate all the files.

AmProsius commented 2 years ago

Great idea! The bot could also turn the PR into a draft after converting the issue.

szapp commented 2 years ago

It would be awesome to somehow encode the necessary info in the issue.

Variables to know:

  • Issue number (XXX)
  • Issue name (optional)
  • Fix file/function name (FixFunctionName)
  • Fix type (session or gamesave)
  • English changelog entry
  • German changelog entry

Out of those listed above, we have all of them clearly extractable except for

I am sure the bot could parse the issue description and comments for any key words. We'd have to add them manually.

AmProsius commented 2 years ago

I am sure the bot could parse the issue description and comments for any key words. We'd have to add them manually.

I have no problem with adding both changelog entries to the issue's description (I already write the Expected behavior like the English changelog entry). The fix function name is unfortunate, because it doesn't really belong to the issue's description, but its okay for me to add it for the automation.