mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-23 10:21:51 +01:00
feat: create action
This commit is contained in:
parent
f4d07e953c
commit
08f72dbd4d
1 changed files with 2 additions and 1 deletions
3
main.ts
3
main.ts
|
@ -17,8 +17,9 @@ const extractCommits = async (): Promise<Commit[]> => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// For PRs, we need to get a list of commits via the GH API:
|
// For PRs, we need to get a list of commits via the GH API:
|
||||||
const prCommitsUrl = typeof get(context, "payload.pull_request.commits_url");
|
const prCommitsUrl = get(context, "payload.pull_request.commits_url");
|
||||||
console.log('ide check URL-a')
|
console.log('ide check URL-a')
|
||||||
|
console.log(context.payload)
|
||||||
if (prCommitsUrl) {
|
if (prCommitsUrl) {
|
||||||
try {
|
try {
|
||||||
const { body } = await got.get(prCommitsUrl, {
|
const { body } = await got.get(prCommitsUrl, {
|
||||||
|
|
Loading…
Reference in a new issue