diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml deleted file mode 100644 index 92b148e10de..00000000000 --- a/.github/workflows/cla.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: "CLA Assistant" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened,closed,synchronize] - -jobs: - CLAssistant: - runs-on: ubuntu-latest - steps: - - name: "CLA Assistant" - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: cla-assistant/github-action@v2.1.3-beta - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PERSONAL_ACCESS_TOKEN : ${{ secrets.BOT_TOKEN_CLA }} - with: - path-to-signatures: 'cla.json' - path-to-document: 'https://github.com/carbon-design-system/carbon-for-ibm-dotcom-cla/blob/master/CLA.md' - branch: 'main' - allowlist: ibmdotcom-bot,dependabot,kodiakhq[bot] - remote-organization-name: carbon-design-system - remote-repository-name: carbon-for-ibm-dotcom-cla - create-file-commit-message: 'chore(cla): creating file for storing CLA signatures' - signed-commit-message: 'chore(cla): $contributorName has signed the CLA in #$pullRequestNo' - custom-notsigned-prcomment: 'Thank you for your contribution! Please review and sign our [Contributor License Agreement](https://github.com/carbon-design-system/carbon-for-ibm-dotcom-cla/blob/master/CLA.md) before we can review and merge your pull request. To sign, enter a comment in this pull request with the following message:' - custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' - custom-allsigned-prcomment: 'All Contributors have signed the CLA.' - lock-pullrequest-aftermerge: false - diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml new file mode 100644 index 00000000000..ca1eb00242a --- /dev/null +++ b/.github/workflows/dco.yml @@ -0,0 +1,32 @@ +name: "DCO Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +jobs: + CLAssistant: + runs-on: ubuntu-latest + steps: + - name: "DCO Assistant" + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the DCO Document and I hereby sign the DCO') || github.event_name == 'pull_request_target' + uses: cla-assistant/github-action@v2.1.3-beta + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN : ${{ secrets.DCO_PERSONAL_ACCESS_TOKEN }} + with: + path-to-signatures: 'dco-signatures.json' + path-to-document: 'https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md' + branch: 'main' + allowlist: ibmdotcom-bot,dependabot,kodiakhq[bot] + remote-organization-name: carbon-design-system + remote-repository-name: carbon-dco + create-file-commit-message: 'chore: create file to store dco signatures' + signed-commit-message: 'chore: $contributorName has signed the dco in #$pullRequestNo' + custom-notsigned-prcomment: 'Thanks for your submission! We ask that $you sign our [Developer Certificate of Origin](https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md) before we can accept your contribution. You can sign the DCO by adding a comment below using this text:' + custom-pr-sign-comment: 'I have read the DCO document and I hereby sign the DCO.' + custom-allsigned-prcomment: 'All Contributors have signed the CLA.' + lock-pullrequest-aftermerge: false + use-dco-flag: true +