Skip to content

Commit

Permalink
ci(PR): logging payloda [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jan 16, 2024
1 parent 1ab68c5 commit c5a9293
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/message/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ async function mock(head_sha) {
* Main function.
*/
async function main() {
console.log(github.context.payload);
console.log(JSON.stringify(github.context.payload, null, 2));
const {
title,
pull_request: { head: { sha }, labels: _labels },
pull_request: { head: { sha }, labels: _labels, title },
repository: { full_name: fullName }
} = JSON.parse(JSON.stringify(github.context.payload));
} = github.context.payload;
const labels = _labels.map(l => l.name);
const message = ps.execSync(`git log --format=%B -n 1 ${sha}`, { encoding: "utf-8" }).trim();

Expand Down

0 comments on commit c5a9293

Please sign in to comment.