Skip to content

Commit

Permalink
chore: add blueprint to add a .github repo
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Dec 10, 2024
1 parent ffa98bf commit 13ec6b2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions blueprints/add-dot-github-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
id: add-dot-github-repo
name: Ensures that a .github repo is present in the GitHub organization.
description: |-
This will add a `.github` repository for the project. Such a repository is useful to define some defaults for all repositories
within a GitHub organization or share common reusable workflows. There is no restriction wrt settings to this repository, this blueprint
will only check for the existence of such a repository and it can be modified as usual.
type: append_configuration
config:
condition: >-
$count(
$.repositories[name = ".github"]
) = 0
content: |-
{
# snippet added due to '{{blueprint_url}}'
_repositories+:: [
orgs.newRepo('.github')
],
}
reviewers:
- "{{project_name}}-project-leads"
- "{{project_name}}-committers"

0 comments on commit 13ec6b2

Please sign in to comment.