vercel.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. SIGNATURE = "cecad6333f8652af7d4e9c7b6ad87f1c922a76d3"
  2. SECRET = "AiK52QASLJXmCXX3X9gO2Zyh"
  3. EXAMPLE_DEPLOYMENT_WEBHOOK_RESPONSE = """
  4. {
  5. "id": "uev_ZfbZKA3Ts2aEa2Cic6t6wSZ3",
  6. "type": "deployment.created",
  7. "createdAt": 1592335604941,
  8. "payload": {
  9. "project": {
  10. "id": "QmQPfU4xn5APjEsSje4ccPcSJCmVAByA8CDKfZRhYyVPAg"
  11. },
  12. "url": "nextjsblog-demo-new-gogovbsz1.vercel.app",
  13. "plan": "hobby",
  14. "target": "production",
  15. "links": {
  16. "deployment": "https://vercel.com/nextjsblog-demo-new/dpl_2p92SueSKLagubfcRtheS3Cvmcj3",
  17. "project": "https://vercel.com/nextjsblog-demo-new"
  18. },
  19. "alias": ["nextjsblog-demo-new.now.sh","nextjsblog-demo-new.meredithanya.vercel.app","nextjsblog-demo-new-git-master.meredithanya.vercel.app","nextjsblog-demo-new.meredithanya.now.sh","nextjsblog-demo-new-git-master.meredithanya.now.sh"],
  20. "type": "LAMBDAS",
  21. "regions": ["now-sfo"],
  22. "deployment": {
  23. "id": "dpl_2p92SueSKLagubfcRtheS3Cvmcj3",
  24. "name": "nextjsblog-demo-new",
  25. "url": "nextjsblog-demo-new-gogovbsz1.vercel.app",
  26. "meta": {
  27. "githubDeployment": "2",
  28. "githubOrg": "MeredithAnya",
  29. "githubRepo": "nextjsblog-demo-new",
  30. "githubCommitOrg": "MeredithAnya",
  31. "githubCommitRepo": "nextjsblog-demo-new",
  32. "githubCommitRef": "master",
  33. "githubCommitSha": "7488658dfcf24d9b735e015992b316e2a8340d93",
  34. "githubCommitMessage": "update index.js",
  35. "githubCommitAuthorName": "MeredithAnya",
  36. "githubCommitAuthorLogin": "MeredithAnya"
  37. }
  38. },
  39. "user": {
  40. "id": "cstd1xKmLGVMed0z0f3SHlD2"
  41. },
  42. "team": null
  43. }
  44. }
  45. """
  46. DEPLOYMENT_WEBHOOK_NO_COMMITS = """
  47. {
  48. "id": "uev_ZfbZKA3Ts2aEa2Cic6t6wSZ3",
  49. "type": "deployment.created",
  50. "createdAt": 1592335604941,
  51. "payload": {
  52. "project": {
  53. "id": "QmQPfU4xn5APjEsSje4ccPcSJCmVAByA8CDKfZRhYyVPAg"
  54. },
  55. "url": "nextjsblog-demo-new-gogovbsz1.vercel.app",
  56. "plan": "hobby",
  57. "target": "production",
  58. "links": {
  59. "deployment": "https://vercel.com/nextjsblog-demo-new/dpl_2p92SueSKLagubfcRtheS3Cvmcj3",
  60. "project": "https://vercel.com/nextjsblog-demo-new"
  61. },
  62. "alias": ["nextjsblog-demo-new.now.sh","nextjsblog-demo-new.meredithanya.vercel.app","nextjsblog-demo-new-git-master.meredithanya.vercel.app","nextjsblog-demo-new.meredithanya.now.sh","nextjsblog-demo-new-git-master.meredithanya.now.sh"],
  63. "type": "LAMBDAS",
  64. "regions": ["now-sfo"],
  65. "deployment": {
  66. "id": "dpl_2p92SueSKLagubfcRtheS3Cvmcj3",
  67. "name": "nextjsblog-demo-new",
  68. "url": "nextjsblog-demo-new-gogovbsz1.vercel.app",
  69. "meta": {}
  70. },
  71. "user": {
  72. "id": "cstd1xKmLGVMed0z0f3SHlD2"
  73. },
  74. "team": null
  75. }
  76. }
  77. """
  78. MINIMAL_WEBHOOK = """
  79. {
  80. "type": "deployment.created",
  81. "payload": {
  82. "project": "nextjsblog-demo",
  83. "url": "nextjsblog-demo-gogovbsz1.vercel.app",
  84. "projectId": "QmQPfU4xn5APjEsSje4ccPcSJCmVAByA8CDKfZRhYyVPAg",
  85. "target": "production",
  86. "deployment": {
  87. "meta": {
  88. "githubCommitSha": "7488658dfcf24d9b735e015992b316e2a8340d9d"
  89. }
  90. },
  91. "user": {
  92. "id": "cstd1xKmLGVMed0z0f3SHlD2"
  93. }
  94. }
  95. }
  96. """