Commit c7cf8d1
feat: convert to fully native Node.js action with ES modules and ensuring valid work items (#99)
* Initial plan
* Convert to native node action
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
* Update README and rebuild
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
* chore: add ESLint configuration and Prettier integration
* style: format code for consistency in action.yml and index.js
* fix: update coverage badge to reflect current status
* chore: delete dist
* fix: update import paths to include 'src' directory in tests
* Rewrite to clean ES modules with JSDoc and proper imports
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
* test: enhance main.test.js with comprehensive Azure DevOps functionality tests
* chore: remove outdated testing documentation from TESTING.md
* feat: enhance commit validation by deduplicating Azure DevOps work item links
* test: add comprehensive tests for Azure DevOps Commit Validator
* fix(badges): update coverage badge to reflect current coverage of 32.9%
* fix(badges): update coverage badge to reflect current coverage of 93.75%
* refactor(tests): simplify mock implementations in index.test.js
* deps(dev): update @vercel/ncc and eslint to latest versions
* chore: bump version to 3.0.0
* chore(deps): update azure-devops-node-api to version 15.1.1
* test: add edge case tests for work item linking and input validation in index.test.js
* fix: improve error messages for commit validation and workflow run details
* feat: enhance commit validation to collect and report invalid commits with detailed feedback
* fix: update workflow run details comment format for clarity
* fix: improve error message for invalid commit links in pull request
* fix: improve error message for unlinked commits in pull request
* fix: enhance error message for unlinked commits with inline reference in pull request
* fix: update error message to format work item reference in pull request validation
* fix: update workflow run details comment format for clarity
* test: add validation for comment updates based on invalid commits in pull requests
* fix: update failure comment to success when all commits are linked to work items
* fix: update existing failure comment to success when all commits are linked to work items
* fix: update existing failure comment to success when all commits are linked to work items
* fix(tests): update expected comment body for linked work items
* fix: improve logging for linking work items to pull requests
* refactor: rename module
* feat: add work item validation to Azure DevOps Commit Validator
* fix: improve comment formatting for invalid work items in pull requests
* feat: enhance work item tracking in pull requests by mapping commits to work items
* fix: improve formatting of Azure DevOps work item references in comments
* test: add tests for handling multiple invalid work items in commit and PR validation
* feat: add HTML comment markers for validation scenarios in Azure DevOps commit validation
* fix: return work item to commit map on validation failure in pull request checks
* fix: streamline comment formatting for commit validation success messages
* feat: enhance validation feedback by combining invalid work items from commits and PRs
* fix: update invalid work item comment to success upon validation completion
* fix: correct HTML comment formatting for invalid work items and workflow run details
* fix: remove extra newline in HTML details for invalid work items and commits
* fix: remove extra newlines in workflow run details comments
* fix: correct HTML comment formatting for workflow run details
* Update src/link-work-item.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: remove unused variable hasCommitFailures in run function
* fix: correct error message in link-work-item tests and update coverage badge
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
Co-authored-by: Josh Johanning <joshjohanning@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 7db258d commit c7cf8d1
File tree
16 files changed
+2846
-831
lines changed- __tests__
- badges
- src
16 files changed
+2846
-831
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
78 | 67 | | |
79 | 68 | | |
80 | 69 | | |
| |||
This file was deleted.
0 commit comments