Code Monkey home page Code Monkey logo

gha-demo-repo-maker's Introduction

GitHub Actions Demo: Repository Maker

Sample workflow for creating repositories from an issue template.

How to use

To create a new repository:

  1. open a new issue and choose the Create repository template
  2. do not modify the content of line 1, nor name: on line 2, and description: on line 3
  3. on the 2nd line, update the value to the right of the colon with the name for the repository to be created, this must not be the name of an existing repository in the organization
  4. on the 3rd line, update the value to the right of the colon with a description for the repository
  5. click save

Once, the issue is created, it will trigger a workflow. The issue will be updated with comments as the workflow processes the request and finally the issue will be closed once the repository has been created.

Create a new repository

Note: There is a beta feature called Issue Template Forms which creates a form that would allow users only to edit appropriate values without accidentally overwriting value that are required to not be modified. I am currently updating the process to leverage an issue form template but this is still a work-in-progress.

See the GitHub documentation for more information on Issue Templates.

Components

File Purpose
.github/ISSUE_TEMPLATE/repo-request-form.yml An issue template for entering the details of the repository to be created.
.github/workflows/create-repo.yml A workflow, triggered by the creation of an issue, which parses the issue and creates a repository based on the information provided.

gha-demo-repo-maker's People

Contributors

dependabot[bot] avatar fredgohsman avatar

Watchers

 avatar

gha-demo-repo-maker's Issues

Create repository

action: create-repo
name: fred-repo
description: Add here your repository description

Create repository

action: create-repo
name: fredgohsman-gha-1
description: This is a test repository created using a workflow and an issue template.

Create repository

action: create-repo
name: gha-cinfin
description: A sample repository for Cincinnati Financial

[REPO]: fred-test-1

Repository Name

fred-test-1

Repository Description

No response

Department Name

HR

Terms & Conditions

  • I agree

Create repository: Trimble 2

action: create-repo
name: demo-trimble-2
description: A sample demo for the 2nd Trimble GitHub Actions training

[REPO]: fred-test-2

Repository Name

fred-test-2

Repository Description

A demo repository to test the issue form templates

Department Name

HR

Terms & Conditions

  • I agree

Create repository

action: create-repo
name: EmilysRepo
description: A new repository to demo to Emily

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.