Skip to content

Commit 7486ef1

Browse files
update documentation & fix bug with release drafter no releases for changes to the gitignore (#109)
1 parent 400fb4c commit 7486ef1

File tree

4 files changed

+62
-10
lines changed

4 files changed

+62
-10
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
default_stages: [pre-commit]
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-json
7+
- id: check-merge-conflict
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: check-yaml
11+
- id: check-added-large-files

README.md

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,67 @@
11
# mcaf-github-workflows
22

3-
Repository for centralized reusable Github workflows.
3+
Repository to synchronize GitHub workflows and repository files.
44

5-
## Create workflows
5+
## Adding Repositories
66

7-
Create or modify a yaml file in [.github/workflows/](.github/workflows/). Also update README.md with details about your workflow and remember that this is a public repository.
7+
To add your repository to the sync:
88

9-
Push your changes to a branch. Once you are done with all your changes, open a PR.
9+
- Add your repository to `REPOSITORIES` in the YAML file: `.github/workflows/workflow-synchronization.yaml`.
10+
11+
## Updating & Creating Workflows
12+
13+
To create or modify a workflow:
14+
15+
- Add or update a YAML file in the [`.github/workflows/`](.github/workflows/) directory.
16+
- Update the `README.md` with details about your workflow.
17+
- Ensure that your changes align with best practices and repository conventions.
18+
- Push your changes to a branch and open a Pull Request (PR) once all modifications are complete.
1019

1120
## Workflows
1221

22+
### Label Synchronization
23+
24+
Ensures that the repository contains the required GitHub labels.
25+
1326
### PR Validation
1427

15-
Verifies the PR has the required labels and proper title set.
28+
Verifies that a PR has the required labels and a properly formatted title before merging.
1629

1730
### Release Drafter
1831

19-
Creates a drafted release based on the labels, title and description of the PR.
32+
Automatically drafts a release based on PR labels, title, and description, simplifying the release process.
2033

2134
### Terraform Validation
2235

23-
Verifies the terraform code adheres to best practises and has secure defaults set.
36+
Validates Terraform code to ensure adherence to best practices and security standards.
37+
38+
### Changelog Update
39+
40+
Automatically updates `CHANGELOG.md` when a new release is published, keeping version history up to date.
41+
42+
## Repository Files
43+
44+
### `.gitignore`
45+
46+
Maintains consistency with our module structure and pre-commit setup.
47+
_Note: OS-specific or IDE-specific ignores are excluded; users should configure these in their global `.gitignore` file._
48+
49+
### `LICENSE`
50+
51+
Ensures that all repositories include the Apache License Version 2.0 for open-source compliance.
52+
53+
### `CONTRIBUTING.md`
54+
55+
Provides clear guidelines on how to contribute, ensuring a structured and efficient collaboration process.
56+
57+
### `.pre-commit-config.yaml`
58+
59+
Includes a pre-commit configuration to streamline local development by catching simple issues before creating a PR.
60+
61+
### Pull Request Template
62+
63+
Standardizes PR submissions by guiding contributors to provide essential details, improving the review process.
2464

25-
### Update changelog
65+
### Issue Templates
2666

27-
Updates the CHANGELOG.md when a release gets published.
67+
Defines structured templates for bug reports, feature requests, and general questions to ensure clear and complete issue descriptions.

sync-root/.github/workflows/release-drafter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- master
1111
paths-ignore:
1212
- .github/**
13+
- .gitignore
1314
- .pre-commit-config.yaml
1415
- CHANGELOG.md
1516
- CONTRIBUTING.md

sync-root/.github/workflows/terraform-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
working-dir: .
128128
continue-on-error: true # added this to prevent a PR from a remote fork failing the workflow
129129

130-
# If the recursive flag is set to true, the action will not update the main README.md file.
130+
# If the recursive flag is set to true, the action will not update the main README.md file.
131131
# Therefore we need to run the action twice, once for the root module and once for the modules directory
132132
docs-modules:
133133
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)