Skip to content

Commit

Permalink
feat: add filter for bitbucket server /pull-request endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiverciuc committed Nov 13, 2024
1 parent 0f1fa22 commit 36b6a76
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 2 deletions.
10 changes: 10 additions & 0 deletions client-templates/bitbucket-server-bearer-auth/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,16 @@
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
},
{
"//": "get a single pull request info",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
}
]
}
11 changes: 11 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,17 @@
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "get a single pull request info",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}
10 changes: 10 additions & 0 deletions defaultFilters/bitbucket-server-bearer-auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,16 @@
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
},
{
"//": "get a single pull request info",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "bearer",
"token": "${BITBUCKET_PAT}"
}
}
]
}
11 changes: 11 additions & 0 deletions defaultFilters/bitbucket-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,17 @@
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "get a single pull request info",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo/pull-requests/:pullRequestId",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}
Loading

0 comments on commit 36b6a76

Please sign in to comment.