vercel.py 3.6 KB

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