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
08f72dbd4d
commit
7dc92a8ab6
2 changed files with 4 additions and 1 deletions
4
dist/main/index.js
vendored
4
dist/main/index.js
vendored
|
@ -27942,8 +27942,10 @@ const extractCommits = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
return context.payload.commits;
|
return context.payload.commits;
|
||||||
}
|
}
|
||||||
// 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('dobeoo PR URL', prCommitsUrl);
|
||||||
|
console.log(context.payload);
|
||||||
if (prCommitsUrl) {
|
if (prCommitsUrl) {
|
||||||
try {
|
try {
|
||||||
const { body } = yield got.get(prCommitsUrl, {
|
const { body } = yield got.get(prCommitsUrl, {
|
||||||
|
|
1
main.ts
1
main.ts
|
@ -19,6 +19,7 @@ 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 = 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('dobeoo PR URL', prCommitsUrl)
|
||||||
console.log(context.payload)
|
console.log(context.payload)
|
||||||
if (prCommitsUrl) {
|
if (prCommitsUrl) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue