From d235a64e1d199411d2a27bba2c56ca3d7b448d80 Mon Sep 17 00:00:00 2001 From: guidari Date: Tue, 10 Sep 2024 09:51:35 -0300 Subject: [PATCH 1/4] fix: changes YL link and added new channel --- .github/workflows/slack-office-hours-design.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slack-office-hours-design.yml b/.github/workflows/slack-office-hours-design.yml index 14e25baac96c..c86699042b19 100644 --- a/.github/workflows/slack-office-hours-design.yml +++ b/.github/workflows/slack-office-hours-design.yml @@ -19,7 +19,7 @@ jobs: { "username": "Carbon Design System", "icon_url": "https://user-images.githubusercontent.com/3360588/192045905-5d9705af-92e2-4432-805e-15db98571e8b.png", - "channel": "#carbon-design-system", + "channel": ["#carbon-design-system", "#ibmproducts-pal-dev"], "text": "Join us for Carbon Design Office Hours!", "blocks": [ { @@ -70,7 +70,7 @@ jobs: "emoji": true }, "value": "click_me_123", - "url": "https://ec.yourlearning.ibm.com/w3/event/10408782", + "url": "https://ec.yourlearning.ibm.com/w3/event/10463103", "action_id": "button-action" } }, From e08bdfa09a069bed3ab33efe25528c9cc23bf5de Mon Sep 17 00:00:00 2001 From: guidari Date: Tue, 10 Sep 2024 09:52:39 -0300 Subject: [PATCH 2/4] fix: added only YL link --- .github/workflows/slack-office-hours-design.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-office-hours-design.yml b/.github/workflows/slack-office-hours-design.yml index c86699042b19..8d8977b7b48a 100644 --- a/.github/workflows/slack-office-hours-design.yml +++ b/.github/workflows/slack-office-hours-design.yml @@ -19,7 +19,7 @@ jobs: { "username": "Carbon Design System", "icon_url": "https://user-images.githubusercontent.com/3360588/192045905-5d9705af-92e2-4432-805e-15db98571e8b.png", - "channel": ["#carbon-design-system", "#ibmproducts-pal-dev"], + "channel": "#carbon-design-system", "text": "Join us for Carbon Design Office Hours!", "blocks": [ { From f287b2a693b45d9b81bd813ce8a7b145f3397bf1 Mon Sep 17 00:00:00 2001 From: guidari Date: Tue, 10 Sep 2024 13:48:18 -0300 Subject: [PATCH 3/4] fix: fixed your learning link --- .github/workflows/slack-office-hours-dev.yml | 95 +++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slack-office-hours-dev.yml b/.github/workflows/slack-office-hours-dev.yml index e58ff9fbf766..55ecd4ae9131 100644 --- a/.github/workflows/slack-office-hours-dev.yml +++ b/.github/workflows/slack-office-hours-dev.yml @@ -161,7 +161,100 @@ jobs: "emoji": true }, "value": "click_me_123", - "url": "https://ec.yourlearning.ibm.com/w3/enrollment/event/10322733", + "url": "https://ec.yourlearning.ibm.com/w3/enrollment/event/10408799", + "action_id": "button-action" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": ":memo: *Sign up to get help in a future session* :ibm-arrow-right::ibm-arrow-right::ibm-arrow-right:" + }, + "accessory": { + "type": "button", + "text": { + "type": "plain_text", + "text": "View the agenda", + "emoji": true + }, + "value": "click_me_123", + "url": "https://ibm.biz/carbon-dev-office-hours", + "action_id": "button-action" + } + }, + { + "type": "divider" + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + + post-reminder-to-carbon-ibmproducts-pal-dev: + name: Post dev reminder to carbon-web-components + runs-on: ubuntu-latest + steps: + - name: Send custom JSON data to Slack workflow + id: slack + uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0 + with: + payload: | + { + "username": "Carbon Design System", + "icon_url": "https://user-images.githubusercontent.com/3360588/192045905-5d9705af-92e2-4432-805e-15db98571e8b.png", + "channel": "#ibmproducts-pal-dev", + "text": "Join us for Carbon Developer Office Hours!", + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "Join us for Carbon Developer Office Hours!", + "emoji": true + } + }, + { + "type": "divider" + }, + { + "type": "image", + "image_url": "https://github.com/user-attachments/assets/e12fb5b9-9657-4e7b-b1a1-e1149cca8956", + "alt_text": "A terminal prompt symbol" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": ":thinking_face: _Are you running into a weird bug you can’t resolve?_ \n\n_:question: Do you have questions about using Carbon?_ \n\n :rocket: _Would you like to discuss migrating from v10 to v11?_" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Carbon developer office hours* are a bi-weekly opportunity to discuss topics like these and get help from the team. Developers from the Carbon team will be available to help and answer questions. While it's very informal, please be prepared to screen share and show your issue!" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": ":yourlearning: *Subscribe and add to your calendar* :ibm-arrow-right::ibm-arrow-right::ibm-arrow-right:" + }, + "accessory": { + "type": "button", + "text": { + "type": "plain_text", + "text": "Subscribe", + "emoji": true + }, + "value": "click_me_123", + "url": "https://ec.yourlearning.ibm.com/w3/enrollment/event/10408799", "action_id": "button-action" } }, From 55108aeea295b8ae777e7c7ac241515f5b6b23dc Mon Sep 17 00:00:00 2001 From: Guilherme Datilio Ribeiro Date: Tue, 10 Sep 2024 14:02:32 -0300 Subject: [PATCH 4/4] Update .github/workflows/slack-office-hours-dev.yml Co-authored-by: Anna Wen <54281166+annawen1@users.noreply.github.com> --- .github/workflows/slack-office-hours-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-office-hours-dev.yml b/.github/workflows/slack-office-hours-dev.yml index 55ecd4ae9131..b23419e71008 100644 --- a/.github/workflows/slack-office-hours-dev.yml +++ b/.github/workflows/slack-office-hours-dev.yml @@ -193,7 +193,7 @@ jobs: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK post-reminder-to-carbon-ibmproducts-pal-dev: - name: Post dev reminder to carbon-web-components + name: Post dev reminder to ibmproducts-pal-dev runs-on: ubuntu-latest steps: - name: Send custom JSON data to Slack workflow