OpenSourceFellows / amplify

Open Source Fellow Sandbox
https://amplify-app-production.herokuapp.com/
MIT License
88 stars 63 forks source link

Calendar Notification Action #624

Open eprice555 opened 1 year ago

eprice555 commented 1 year ago

Part of the OSS Architecture track

User Story: When someone assigns themselves an issue, the issue's project date (deadline) will create a calendar reminder to the user's email so they know when they ideally need to have the PR turned in by

Task

Directions: https://www.youtube.com/watch?v=EvfaxIWDMC4

Resources:

lingeorge88 commented 1 year ago

I would like to work on this issue for tomorrow's pair programming hour, thank you!

lingeorge88 commented 1 year ago

Hi! I tried following the video tutorial to utilize Microsoft graph to see if I can create an event in the user's calendar but my current action fails with the following message: Run anoopt/ms-graph-create-event-msal@v1 ⌛ Getting access token... ✅ Got access token ⌛ Getting Graph client... ✅ Got Graph client ⌛ Creating event... Error: 🚨 Error in createEvent function. Error: Error Error: Error

Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-[11](https://github.com/lingeorge88/Password-generator/actions/runs/6700564447/job/18206698846#step:3:12)-github-actions-deprecating-save-state-and-set-output-commands/

this is my current yml setup: `name: MS Graph Event

on: issues: types: [assigned]

jobs: create-event: runs-on: ubuntu-latest name: Create Event steps:

lingeorge88 commented 1 year ago

I have registered an application on Azure AD and configured my client id and secrets following the instructions found here: https://github.com/anoopt/ms-graph-create-event-msal

JulieGunawan commented 1 year ago

I would like to add a blog in addition to the documentation, to paint a better picture on all these variables required: https://anoopt.medium.com/github-actions-create-an-event-with-microsoft-graph-using-msal-ee7aa7b49dc7

lingeorge88 commented 11 months ago

Hello all, please see pull request #834 for this issue.

The current working action as outlined in the pull request follows these sequence of steps: 1) User assigns themselves to an issue 2) The action triggers a workflow run, and gets the following information : Issue title, assigned date, username 3) The action appends a comment automatically with a Google Calendar Link that will have the issue's title, a tentative due date for the issue (3 weeks from assignment) 4) The user then follows the link to create an event in their perspective calendars. 5) The user is free to modify the due date and when they would like to be reminded Screenshot 2023-12-07 at 3 41 10 PM Screenshot 2023-12-07 at 3 43 33 PM