Skip to content

Maintenance: label issue on merge fails #1076

Closed
@dreamorosi

Description

@dreamorosi

Bug description

At the moment, the workflow that is run every time a PR is merged attempts to label the issue related to that PR with a pending-release tag, to inform the person opening the issue that a change will be released soon.

At the moment the script that is run during this action has a bug coming from a leftover version of the script that makes it fail.

image

Example here.

Expected Behavior

The action should succeed if the PR has a related issue in the body and should fail only if it doesn't.

Current Behavior

The workflow fails because the labelling action is attempted twice, with the second one having an undefined issue number.

Possible Solution

Remove L53 to L62 from .github/scripts/label_related_issue.js

Steps to Reproduce

Merge a PR, see the Actions Results.

Environment

  • Powertools version used: N/A
  • Packaging format (Layers, npm): N/A
  • AWS Lambda function runtime: N/A
  • Debugging logs: N/A

Related issues, RFCs

aws-powertools/powertools-lambda-python@cbad51c

Metadata

Metadata

Assignees

Labels

automationThis item relates to automationcompletedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions