Skip to content

Instantly share code, notes, and snippets.

@anoopt
Created March 1, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoopt/21a5ed9a251d7ae8eb991a310380a194 to your computer and use it in GitHub Desktop.
Save anoopt/21a5ed9a251d7ae8eb991a310380a194 to your computer and use it in GitHub Desktop.
name: "On pull request"
on:
pull_request:
branches:
- main
jobs:
create-task:
runs-on: ubuntu-latest
steps:
- name: Create a task for the user
uses: anoopt/ms-graph-create-task@v1
with:
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
tenantId: "8158ff72-231e-4400-b397-6dd1ad63f4b6"
planId: "dyzgid7nk0uzGs1q5Uj3LJcABo4Z"
bucketId: "Ys2XyYjrnkCQDmOZEJ8KDZcADKs9"
title: "Review pull request - ${{ github.event.pull_request.title }}"
userId: "73ebbe8e-be1f-464d-847a-855598310a7d"
description: "Please review the pull request (${{ github.event.pull_request.title }}). Link to the pull request ${{ github.event.pull_request.html_url }}."
priority: "1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment