persona-community-5/.pnpm-store/v3/files/59/489119e36276d1a922e962009ae354fc46d81ca5c584ba28ad5b679cdb5ad8619ad029408a19d620f4f203036082e08f792729f8ff9f316daabd58dca12ad2
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

22 lines
615 B
Plaintext

import type { Arazzo1Rule } from '../../visitors';
import type { UserContext } from '../../walk';
export const WorkflowIdUnique: Arazzo1Rule = () => {
const seenWorkflow = new Set();
return {
Workflow: {
enter(workflow, { report, location }: UserContext) {
if (!workflow.workflowId) return;
if (seenWorkflow.has(workflow.workflowId)) {
report({
message: 'Every workflow must have a unique `workflowId`.',
location: location.child([workflow.workflowId]),
});
}
seenWorkflow.add(workflow.workflowId);
},
},
};
};