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
feat!: upgrade GitHub Actions runtime from node20 to node24 (#160)
* feat!: upgrade to node24 runtime and remove deprecated input
BREAKING CHANGE: Updated GitHub Actions runtime from node20 to node24.
Bumped major version to v4.
Removed deprecated append-work-item-title input - use add-work-item-table instead.
* chore: sync copilot-instructions.md with reference template
* chore: update actions/checkout to v6 in README
* chore: update publish-github-action to v3
* chore: update npm-version-check-action to v2
- Use the same Node.js runtime version configured in this repo's `action.yml` (currently `node20`) for `runs.using`
62
+
- Only use Node.js runtimes officially supported by GitHub Actions (see [GitHub Actions documentation](https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions) for current supported versions)
63
+
- Use the same Node.js runtime version configured in this repo's `action.yml` for `runs.using`
63
64
- When updating Node.js support, update `runs.using` in `action.yml`, the `engines.node` range in `package.json`, and CI/test matrices together to stay consistent
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@
8
8
9
9
This action validates that pull requests and commits contain Azure DevOps work item links (e.g. `AB#123`), and **automatically links the GitHub Pull Request to work items found in commit messages**.
10
10
11
+
## What's new
12
+
13
+
Please refer to the [release page](https://github.com/joshjohanning/azdo_commit_message_validator/releases) for the latest release notes.
14
+
11
15
## Key Features
12
16
13
17
1.**Validates Pull Requests** - Ensures PR title or body contains an Azure DevOps work item link (e.g. `AB#123`)
@@ -51,9 +55,9 @@ jobs:
51
55
pull-requests: write
52
56
53
57
steps:
54
-
- uses: actions/checkout@v4
58
+
- uses: actions/checkout@v6
55
59
- name: Azure DevOps Commit Validator and Pull Request Linker
| `link-commits-to-pull-request` | Only if `check-commits=true`, link the work items found in commits to the pull request | `false` | `true` |
75
79
| `validate-work-item-exists` | Validate that the work item(s) referenced in commits and PR exist in Azure DevOps (requires `azure-devops-token` and `azure-devops-organization`) | `false` | `true` |
76
80
| `add-work-item-table` | Add a "Linked Work Items" table to the PR body showing titles for `AB#xxx` references (original references are preserved). Requires `azure-devops-token` and `azure-devops-organization` | `false` | `false` |
77
-
| `append-work-item-title` | **Deprecated** - use `add-work-item-table` instead. Will be removed in a future major version. | `false` | `false` |
78
81
| `azure-devops-organization` | Only if `check-commits=true`, link the work items found in commits to the pull request | `false` | `''` |
79
82
| `azure-devops-token` | Only required if `link-commits-to-pull-request=true`, Azure DevOps PAT used to link work item to PR (needs to be a `full` PAT) | `false` | `''` |
80
83
| `github-token` | The GitHub token that has contents-read and pull_request-write access | `true` | `${{ github.token }}` |
Copy file name to clipboardExpand all lines: action.yml
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,11 @@ inputs:
44
44
description: 'Validate that the work item(s) referenced in commits and PR exist in Azure DevOps. Requires azure-devops-token and azure-devops-organization to be set.'
45
45
required: false
46
46
default: 'true'
47
-
append-work-item-title:
48
-
description: 'Deprecated: Use add-work-item-table instead. This input will be removed in a future major version.'
49
-
deprecationMessage: 'The append-work-item-title input is deprecated. Use add-work-item-table instead.'
50
-
required: false
51
-
default: 'false'
52
47
add-work-item-table:
53
48
description: 'Add a Linked Work Items table to the PR body showing titles for AB#xxx references (original AB# references are preserved). Requires azure-devops-token and azure-devops-organization to be set.'
"description": "GitHub Action to enforce that each commit in a pull request be linked to an Azure DevOps work item and automatically link the pull request to each work item ",
0 commit comments