joshjohanning-org / issueops-samples

Samples of using Issueops to create/delete a repository, among others
1 stars 1 forks source link
administration automation github github-api issueops

issueops-samples

Solutions

General Features

Setup

Creds

  1. Create a repo secret titled ADMIN_TOKEN with the value of a GitHub PAT (or modify the workflow code with the title of the secret with the GitHub PAT)
  2. Create a label titled new-repo AND created

Labels

Create the appropriate labels

gh label create create-repo -R joshjohanning-org/issueops-samples
gh label create created -R joshjohanning-org/issueops-samples

gh label create delete-repos -R joshjohanning-org/issueops-samples
gh label create deleted -R joshjohanning-org/issueops-samples

Example Issue

This contains the request and processing messages: https://github.com/joshjohanning-org/new-repo-issueops/issues/35

Notes

This often assumes the org that the IssueOps repo is hosted in is the org you are using for API calls (ie: to create/delete repos). Update the owner as appropriate or modify the issue template to allow that as an input.