Calendar Notification Action
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:
- What is an Action
- Our current workflows
- Getting started with GitHub Actions
- How to use Copilot to write your action recording
- If you're done with your task and want to suggest one of your own, check out marketplace
I would like to work on this issue for tomorrow's pair programming hour, thank you!
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'`
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
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
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:
- User assigns themselves to an issue
- The action triggers a workflow run, and gets the following information : Issue title, assigned date, username
- 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)
- The user then follows the link to create an event in their perspective calendars.
- The user is free to modify the due date and when they would like to be reminded