You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): detect table formatting changes via git diff (#261)
## Description
Fixes the table-format.yml workflow to properly detect when markdown
tables need formatting. The previous implementation relied on the exit
code of `markdown-table-formatter`, which always returns 0 regardless of
whether it modified files. The fix uses `git diff --name-only` to detect
actual file changes after running the formatter.
Additionally formats all markdown files with misaligned table pipes to
comply with repository conventions.
- fix(build): replace exit code check with `git diff --name-only`
detection in table-format.yml workflow
- style(docs): align table pipes vertically in 9 documentation files per
markdown.instructions.md
## Related Issue(s)
Fixes#253
## Type of Change
Select all that apply:
**Code & Documentation:**
- [x] Bug fix (non-breaking change fixing an issue)
- [ ] New feature (non-breaking change adding functionality)
- [ ] Breaking change (fix or feature causing existing functionality to
change)
- [x] Documentation update
**Infrastructure & Configuration:**
- [x] GitHub Actions workflow
- [ ] Linting configuration (markdown, PowerShell, etc.)
- [ ] Security configuration
- [ ] DevContainer configuration
- [ ] Dependency update
**AI Artifacts:**
- [ ] Reviewed contribution with `prompt-builder` agent and addressed
all feedback
- [ ] Copilot instructions (`.github/instructions/*.instructions.md`)
- [ ] Copilot prompt (`.github/prompts/*.prompt.md`)
- [ ] Copilot agent (`.github/agents/*.agent.md`)
> **Note for AI Artifact Contributors**:
>
> - **Agents**: Research, indexing/referencing other project (using
standard VS Code GitHub Copilot/MCP tools), planning, and general
implementation agents likely already exist. Review `.github/agents/`
before creating new ones.
> - **Model Versions**: Only contributions targeting the **latest
Anthropic and OpenAI models** will be accepted. Older model versions
(e.g., GPT-3.5, Claude 3) will be rejected.
> - See [Agents Not
Accepted](../docs/contributing/custom-agents.md#agents-not-accepted) and
[Model Version
Requirements](../docs/contributing/ai-artifacts-common.md#model-version-requirements).
**Other:**
- [ ] Script/automation (`.ps1`, `.sh`, `.py`)
- [ ] Other (please describe):
## Sample Prompts (for AI Artifact Contributions)
N/A - This PR does not include AI artifact contributions.
## Testing
- Ran `npm run format:tables` locally to verify formatter execution
- Verified `git diff --name-only` correctly lists modified files
- Ran `npm run lint:yaml` - workflow syntax validated
- Ran `npm run lint:md` - all markdown files pass linting
## Checklist
### Required Checks
- [x] Documentation is updated (if applicable)
- [x] Files follow existing naming conventions
- [x] Changes are backwards compatible (if applicable)
- [ ] Tests added for new functionality (if applicable)
### AI Artifact Contributions
N/A
### Required Automated Checks
The following validation commands must pass before merging:
- [x] Markdown linting: `npm run lint:md`
- [ ] Spell checking: `npm run spell-check`
- [ ] Frontmatter validation: `npm run lint:frontmatter`
- [ ] Link validation: `npm run lint:md-links`
- [ ] PowerShell analysis: `npm run lint:ps`
## Security Considerations
- [x] This PR does not contain any sensitive or NDA information
- [x] Any new dependencies have been reviewed for security issues
- [x] Security-related scripts follow the principle of least privilege
## Additional Notes
The workflow now properly fails when tables need formatting by:
1. Running `npm run format:tables` (modifies files in-place)
2. Checking `git diff --name-only` for any changes
3. Setting `TABLE_FORMAT_FAILED=true` when changes detected
4. Listing affected files in workflow output
🔧 - Generated by Copilot
| Technical direction | Set architectural standards and approve significant changes |
47
-
| Release management | Coordinate versioning, changelogs, and publication |
48
-
| Community health | Enforce code of conduct and foster inclusive participation |
49
-
| Access management | Grant and revoke repository permissions |
47
+
| Release management | Coordinate versioning, changelogs, and publication|
48
+
| Community health | Enforce code of conduct and foster inclusive participation|
49
+
| Access management | Grant and revoke repository permissions|
50
50
51
51
Current maintainers are members of the [@microsoft/edge-ai-core-dev](https://github.com/orgs/microsoft/teams/edge-ai-core-dev) team.
52
52
53
53
### Triage Contributors
54
54
55
55
Triage contributors assist maintainers by managing issue flow and initial assessments.
56
56
57
-
| Responsibility | Description |
58
-
|:---------------|:------------|
59
-
| Issue labeling | Apply appropriate labels to new issues |
Multiple instructions can apply to the same file. When patterns overlap, all matching instructions contribute guidance. Pattern specificity determines precedence for conflicting directives.
187
187
@@ -215,12 +215,12 @@ The extension scans these directories at startup:
215
215
216
216
Each artifact's `maturity:` field controls channel inclusion:
0 commit comments