Skip to content

Commit

Permalink
ci(check-labels): debug pull_request info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Oct 10, 2024
1 parent cc79851 commit 5b0af7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/check-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const core = require('@actions/core');
const { context, getOctokit } = require('@actions/github');
const { prMessageSymbol, prIntroMessage, prMessageLabelDetails, prReleaseLabelMessage } = require('./messages');
const { inspect } = require('util');

async function run() {
try {
Expand All @@ -20,6 +21,8 @@ async function run() {
const hasOneSemverLabel = attachedSemverLabels.length === 1;
const hasReleaseLabel = labelNames.includes('release');

console.log(inspect(pull_request, { depth: null, colors: true }));

if (isMissingSemverLabel) {
let errorMsg = [
'❌ This PR cannot be merged until the following issues are addressed:',
Expand Down

0 comments on commit 5b0af7e

Please sign in to comment.