Skip to content

Create script for issue submission (canonical data version changes)#1674

Merged
FridaTveit merged 6 commits into
exercism:masterfrom
lemoncurry:create-issues-updatescanonical
May 20, 2019
Merged

Create script for issue submission (canonical data version changes)#1674
FridaTveit merged 6 commits into
exercism:masterfrom
lemoncurry:create-issues-updatescanonical

Conversation

@lemoncurry
Copy link
Copy Markdown
Contributor

@lemoncurry lemoncurry commented May 6, 2019

Closes #1670

Suggested script using GitHub API to create new issue when difference between track exercise version file number and canonical data version number is detected.

I based the script on the canonical data check script.

I introduced a new label to filter for duplicates, exercise version update.

The script adds a generic title, body and labels.
For example:

image

Please have a look at the generic texts and fell free to add or remove information/wording (I'm not a native speaker of English, so I would be very glad for corrections 😄). I tried to incorporate parts of texts that have been previously used.

The script may be tested with a private repository. For authentication you need to create a token, which should be kept in a hidden file in your home directory, and of course should never be committed. Further explanation on what to put into the file is described in the script.

Right now, the script only checks for changes in the test version, but not for new exercises.
I'd suggest to add this additional functionality at a later point.

Please let me know if you have further improvements or ideas for the script @exercism/java 😄


Reviewer Resources:

Track Policies

Script using GitHub API to create new issue when difference between track exercise version file number and canonical data version number is detected.
Copy link
Copy Markdown
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @lemoncurry, thanks for taking the time to do this! 😄

I've left a couple of minor comments and it would be great if we could document how to use this script, perhaps in the contributing guide? 🙂

Comment thread scripts/create_issues_versionchange_canonical.sh Outdated
Comment thread scripts/create_issues_versionchange_canonical.sh
@lemoncurry
Copy link
Copy Markdown
Contributor Author

I will add some documentation for the script to the contribution guide in the following days.

Copy link
Copy Markdown
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 😄 I only have two very minor comments, apart from that it looks ready to merge! 🙂

Comment thread CONTRIBUTING.md Outdated
Comment thread scripts/create_issues_versionchange_canonical.sh Outdated
@lemoncurry
Copy link
Copy Markdown
Contributor Author

Thank you @FridaTveit for your review

Copy link
Copy Markdown
Contributor

@FridaTveit FridaTveit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks so much for doing this @lemoncurry! 😄

@FridaTveit FridaTveit merged commit c62eccc into exercism:master May 20, 2019
@lemoncurry lemoncurry deleted the create-issues-updatescanonical branch May 21, 2019 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create script for automated issue submission for new exercises and test updates

2 participants