chore: standardize squad governance workflows#421
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🏗️ PR Added to Squad Triage QueueThis PR has been labeled with Next steps:
|
Test Results Summary0 tests 0 ✅ 0s ⏱️ Results for commit 63e5dfa. |
There was a problem hiding this comment.
Pull request overview
This PR adds a “standard governance workflow pack” to the repository by introducing new GitHub Actions workflows for YAML linting, Markdown linting, a main-from-dev PR source guard, and Dependabot auto-merge.
Changes:
- Added
yamllintworkflow for PRs targetingdev/main - Added
markdownlintworkflow for PRs targetingdev/main - Added guard workflow enforcing that PRs into
mainmust come fromdev - Added Dependabot auto-merge workflow for Dependabot PRs into
dev
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| .github/workflows/squad-standard-lint-yaml.yml | Adds a YAML lint workflow (currently uses default yamllint config, which is likely to fail on existing long YAML lines). |
| .github/workflows/squad-standard-lint-markdown.yml | Adds a Markdown lint workflow (currently includes .squad/** which is likely to fail MD040 due to unlabeled code fences). |
| .github/workflows/squad-main-from-dev-guard.yml | Adds a PR guard to enforce dev as the only allowed source branch for PRs into main. |
| .github/workflows/squad-dependabot-auto-merge.yml | Adds Dependabot auto-merge workflow (duplicates existing workflow; missing concurrency guard found in the existing version). |
| echo "No YAML files found." | ||
| exit 0 | ||
| fi | ||
| yamllint -s $files |
Comment on lines
+1
to
+6
| name: lint-yaml | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [dev, main] | ||
| workflow_dispatch: |
Comment on lines
+18
to
+23
| files=$(git ls-files '*.md') | ||
| if [ -z "$files" ]; then | ||
| echo "No markdown files found." | ||
| exit 0 | ||
| fi | ||
| npx --yes markdownlint-cli $files |
Comment on lines
+13
to
+15
| - uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: "20" |
Comment on lines
+1
to
+6
| name: lint-markdown | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [dev, main] | ||
| workflow_dispatch: |
Comment on lines
+9
to
+12
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
Comment on lines
+1
to
+7
| name: Dependabot Auto-Merge | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
| branches: [dev] | ||
| workflow_dispatch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies the standard governance workflow pack: yamllint, markdownlint, main-from-dev guard, and dependabot auto-merge.