Skip to content

github-winterfest-2023/the-cookie-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Cookie Factory for Winterfest 2023

Baking Octocat

This repository is a template implementing all actions for the GitHub Projects The Cookie Factory

If the Project mentioned above is the frontend, this is the backend where all the baking magic happens.

Components powering the cookie factory

1. Recipe fetching workflow

Once a new issue is created or its title updated this workflow is here to fetch:

  1. The recipe instructions
  2. The list of ingredients
  3. A picture of the cookie to bake

The GitHub Project built-in automation is set to add an entry when a new issue or pull request is added to this repository. Also it is going to set (default) values for fields in the GitHub Project with the help the titoportas/update-project-fields Actions via GitHub GraphQL API.

The workflow needs the following Actions secrets to operate properly:

Additionaly these Actions variables are needed:

  • PROJECT_ID is the GraphQL project id which can be viewed with the GH CLI command gh project list. This ID looks like PVT_XXXXXXXXXXXXXXXX
  • PROJECT_URL is the project URL to update (e.g https://github.com/orgs/<org-name>/projects/<project-number> or https://github.com/users/<username/projects/<project-number>)

2. Cookie baking workflow

Once an issue of this repo gets the issue label Baking, it will start the baking process which will be reflected live in the Progress field updated by the titoportas/update-project-fields Actions. In the end, the issue will be automatically closed by the Actions peter-evans/close-issue which will change the issue status to Done.

The workflow needs the following Actions secrets to operate properly:

Additionaly these Actions variables are needed:

  • PROJECT_ID is the GraphQL project id which can be viewed with the GH CLI command gh project list. This ID looks like PVT_XXXXXXXXXXXXXXXX
  • PROJECT_URL is the project URL to update (e.g https://github.com/orgs/<org-name>/projects/<project-number> or https://github.com/users/<username/projects/<project-number>)

Happy baking! 🍪 🏭

About

The Cookie Factory for Winterfest 2023

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published