-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lint): add changie validation job to lint action #83
Conversation
Fixes #82 Add changie validation job to lint action. * Add a new job `changie-validation` to `.github/workflows/lint.yml` to check for changie entries in `.changes/unreleased` directory. * Skip the `changie-validation` job if the `.changes` directory does not exist. * Skip the `changie-validation` job if the labels `no-changie-required` or `dependencies` are set. * Replace deprecated `set-output` command with `echo "{name}={value}" >> $GITHUB_OUTPUT` in the `changie-validation` job. * Add a comment using the gh cli if a changie entry is required, ensuring only a single comment is made and updated if it was closed. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DelineaXPM/github-workflows/issues/82?shareId=XXXX-XXXX-XXXX-XXXX).
* Set GH_TOKEN environment variable to ${{ github.token }} for the changie-validation job to enable gh pr comment command
Add GH_TOKEN environment variable to changie-validation job
|
* Add `changie-validation` job to check for changie entries in `.changes/unreleased` directory * Skip `changie-validation` job if `.changes` directory does not exist or if labels `no-changie-required` or `dependencies` are set * Replace deprecated `set-output` command with `echo "{name}={value}" >> $GITHUB_OUTPUT` * Add comment using gh cli if changie entry is required, ensuring only a single comment is made * Map `GH_TOKEN` in `env` for `check_labels` and `validate_changie_entry` steps
Add
|
Update
|
* **Fix environment variable mapping:** - Remove `with` block and move `env` block directly under `run` for `check_labels` and `validate_changie_entry` steps - Ensure `GH_TOKEN` is correctly mapped in `env` for both steps
* Add checkout step to changie-validation job to ensure the repository is checked out before running validation steps
Add checkout step to changie-validation job in lint workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ changie entry was found
✅ changie entry was found |
1 similar comment
✅ changie entry was found |
tweak to echo and add more context detail |
make it work |
remove readme changes |
Pull request was closed
Fixes #82
Add changie validation job to lint action.
changie-validation
to.github/workflows/lint.yml
to check for changie entries in.changes/unreleased
directory.changie-validation
job if the.changes
directory does not exist.changie-validation
job if the labelsno-changie-required
ordependencies
are set.set-output
command withecho "{name}={value}" >> $GITHUB_OUTPUT
in thechangie-validation
job.For more details, open the Copilot Workspace session.