Skip to content

Commit

Permalink
Log Issue/PR labels
Browse files Browse the repository at this point in the history
Useful to debug situations where this action reports that an Issue/PR doesn't have a specific label (even if the label is manually set).

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
  • Loading branch information
epuertat committed Feb 27, 2023
1 parent 11ef9e1 commit d202604
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/add-to-project.ts
Expand Up @@ -54,6 +54,7 @@ export async function addToProject(): Promise<void> {
const issueOwnerName = github.context.payload.repository?.owner.login

core.debug(`Issue/PR owner: ${issueOwnerName}`)
core.debug(`Issue/PR labels: ${issueLabels}`)

// Ensure the issue matches our `labeled` filter based on the label-operator.
if (labelOperator === 'and') {
Expand Down

0 comments on commit d202604

Please sign in to comment.