Skip to content

Add issue generation script#76

Merged
kolkhis merged 4 commits intoProfessionalLinuxUsersGroup:mainfrom
kolkhis:add-issue-generation-script
Apr 26, 2025
Merged

Add issue generation script#76
kolkhis merged 4 commits intoProfessionalLinuxUsersGroup:mainfrom
kolkhis:add-issue-generation-script

Conversation

@kolkhis
Copy link
Copy Markdown
Contributor

@kolkhis kolkhis commented Apr 23, 2025

I wanted to take the manual labor out of creating 4 issues for each unit.
This uses the gh command line tool to create issues on the repo, and reads from files in .github/ISSUE_TEMPLATES for the body of the issues.

The GH CLI tool must be configured on your local system with gh auth login, and the access token you use must have the correct permissions to create issues for the org.

Follows the same format that has been used all through lac and psc so far.

Ex: Create a worksheet issue for unit 5

cd ./scripts
./create-issues -u 5 -t worksheet

repeat with -t intro, -t lab, -t bonus.

Limitation is that you cannot specify "Type" via the gh tool so that will need to be manually added.

@kolkhis kolkhis requested a review from TrevorSmale April 23, 2025 15:52
@kolkhis
Copy link
Copy Markdown
Contributor Author

kolkhis commented Apr 23, 2025

An example loop to create all 4 issues for an entire unit:

cd ./scripts
for type in intro lab worksheet bonus; do ./create-issues --unit 5 --type $type; done

@cmckee786
Copy link
Copy Markdown
Contributor

cmckee786 commented Apr 24, 2025

Wow, cool stuff here, will have to take some notes on this
spongebob-patrick

@kolkhis kolkhis merged commit 00b254c into ProfessionalLinuxUsersGroup:main Apr 26, 2025
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.

3 participants