Skip to content

Commit 56252bd

Browse files
committed
chore: update CLA contributor check workflow (enforce mode) [skip ci]
1 parent 73d0dd9 commit 56252bd

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/cla-check.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,21 @@ jobs:
5454
issue_number: context.payload.pull_request.number,
5555
body:
5656
`👋 Hi @${author} — thank you for your pull request.\n\n` +
57-
`**Note:** We do not have a Contributor License Agreement (CLA) on file for your GitHub account. ` +
58-
`Merging is **not blocked** at this time — this repository is in a CLA grace period. ` +
59-
`However, a signed CLA will be required once enforcement is enabled.\n\n` +
60-
`To get your CLA on file:\n` +
57+
`**This PR is currently blocked** because we do not have a Contributor License Agreement (CLA) on file for your GitHub account.\n\n` +
58+
`To get unblocked:\n` +
6159
`1. Complete the form at https://mifos.org/about-us/financial-legal/mifos-contributor-agreement\n` +
6260
`2. Complete the CLA signing process\n` +
63-
`3. Once verified you will be added to the approved contributors list`
61+
`3. Once verified you will be added to the approved contributors list and this PR check will be cleared`
6462
});
6563
await github.rest.issues.addLabels({
6664
owner: context.repo.owner,
6765
repo: context.repo.repo,
6866
issue_number: context.payload.pull_request.number,
6967
labels: ['cla-required'],
7068
});
71-
core.warning(
72-
`@${author} is not a member of the 'contributors' or 'contracted-contributors' team ` +
73-
`CLA required (grace period active, merge not blocked).`
69+
core.setFailed(
70+
`@${author} is not a member of the 'contributors' or 'contracted-contributors' team. ` +
71+
`CLA signature required before this PR can be merged.`
7472
);
7573
} else {
7674
console.log(`@${author} is verified via '${matchedTeam}' team ✓`);

0 commit comments

Comments
 (0)