amplify icon indicating copy to clipboard operation
amplify copied to clipboard

Calendar Notification Action

Open eprice555 opened this issue 2 years ago • 5 comments

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

  • [x] Within the .yaml workflow files, configure the a google calendar Action for this project
  • [x] Add inline comments

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

Resources:

eprice555 avatar Oct 24 '23 00:10 eprice555

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

lingeorge88 avatar Oct 25 '23 04:10 lingeorge88

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-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: - name: Checkout uses: actions/checkout@v1 - name: Create event on the specified day and time uses: anoopt/ms-graph-create-event-msal@v1 with: clientId: ${{ secrets.CLIENT_ID }} clientSecret: ${{ secrets.CLIENT_SECRET }} tenantId: ${{ secrets.TENANT_ID }} subject: 'Issue Assigned' body: 'An issue was assigned on ${{ github.repository }} to ${{ github.actor }}. Please find the details here ${{ github.event.compare }}.' userEmail: '[email protected]' start: '2023-12-04T14:30:00' end: '2023-12-04T15:00:00'`

lingeorge88 avatar Oct 31 '23 01:10 lingeorge88

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

lingeorge88 avatar Oct 31 '23 01:10 lingeorge88

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

JulieGunawan avatar Nov 24 '23 22:11 JulieGunawan

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

lingeorge88 avatar Dec 07 '23 23:12 lingeorge88