diff --git a/.github/workflows/contribution-buddy.yml b/.github/workflows/contribution-buddy.yml deleted file mode 100644 index e3db1b2255e1..000000000000 --- a/.github/workflows/contribution-buddy.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Contribution Buddy -# This workflow is triggered when a label is added to an issue. -on: - issues: - types: labeled - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/label-actions@ade7bcd4c1b30de6ba8e556cc31301fd4f79ca65 #v3.1.0 - with: - github-token: ${{ github.token }} - config-path: '.github/label-actions.yml' - process-only: 'issues' - \ No newline at end of file diff --git a/.github/workflows/contribution-proposal.yml b/.github/workflows/contribution-proposal.yml new file mode 100644 index 000000000000..4bc964325500 --- /dev/null +++ b/.github/workflows/contribution-proposal.yml @@ -0,0 +1,35 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning +name: Add comment on enhancement issue +on: + issues: + types: [labeled, opened] + +permissions: + issues: write + +jobs: + add-comment: + name: If new enhancement issue is submitted, then post the following comment. + runs-on: ubuntu-latest + steps: + - name: Add comment + if: github.event.label.name == format('type{0} enhancement', ':') + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 #v6.4.1 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thank you for submitting a feature request. Here’s what to expect next. + Your proposal is open and is now being [triaged](https://github.com/orgs/carbon-design-system/projects/51/views/1) by the Carbon team. + If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request volunteers from the community. + Read the full triaging workflow [here](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/support.md#type-enhancement-).' + }) \ No newline at end of file diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml deleted file mode 100644 index d871ba9cb1b5..000000000000 --- a/.github/workflows/label-actions.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning -name: Add comment on Enhancement Label -on: - issues: - types: - - labeled -jobs: - add-comment: - if: github.event.label.name == 'enhancement' - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Add comment - uses: peter-evans/create-or-update-comment@5f728c3dae25f329afbe34ee4d08eef25569d79f - with: - issue-number: ${{ github.event.issue.number }} - body: | - Thank you for submitting a feature request. Here's what to expect next. - Your proposal is open and is now being [triaged](https://github.com/orgs/carbon-design-system/projects/51/views/1) by the Carbon team. - If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request volunteers from the community. - Read the full triaging workflow [here](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/support.md#type-enhancement-). \ No newline at end of file diff --git a/.github/workflows/proposal-not-pursuing.yml b/.github/workflows/proposal-not-pursuing.yml new file mode 100644 index 000000000000..e35d8aa382ab --- /dev/null +++ b/.github/workflows/proposal-not-pursuing.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning +name: Add comment on enhancement issue +on: + issues: + types: [labeled, opened] + +permissions: + issues: write + +jobs: + add-comment: + name: If new enhancement issue is submitted, then post the following comment. + runs-on: ubuntu-latest + steps: + - name: Add comment + if: github.event.label.name == ${{format('type{0} enhancement', ':')}} #v6.4.1 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Thank you for submitting a feature request. Here’s what to expect next. + Your proposal is open and is now being [triaged](https://github.com/orgs/carbon-design-system/projects/51/views/1) by the Carbon team. + If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request volunteers from the community. + Read the full triaging workflow [here](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/support.md#type-enhancement-).' + }) \ No newline at end of file