refactor ♻️: Refactor event triggers for workflows #24
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated the
ansible-lintandmarkdown-lintworkflows by adding new event types (opened) to their issue triggers.Review Summary
onsection. In the new version, the event triggers are defined inside another list, which is not required and might lead to confusion or unexpected behavior. Suggestion: Instead of:yaml on: push: issues: types: [opened]Use this cleaner version:yaml on: push: issue: types: [opened]Score: 2 (Optimization suggestion)Review Summary
ansible-lint.ymlfile for GitHub Actions. This refactor separates the triggers for 'push' and 'issues' events, making the configuration clearer and potentially more flexible. However, there are no major issues or performance bottlenecks found with a score >= 2. Thus, the changes look good.@@ -2,7 +2,10 @@# .gitea/workflows/markdown-lint.yml[Score: 3] Removing the 'on' line without replacement could potentially break the workflow triggering if it was previously set to other events besides issues and push. Consider adding a new line to specify those events explicitly or ensure that the original configuration covered all necessary cases.
❌ CI checks failed.
Leak: success
Lint: failure
Pull request closed