Skip to content

[BUG]: New label is not created on creating a new github issue #479

@rndquu

Description

@rndquu

What happened?

We have this code that creates a new github issue. In particular it sets labels in the labels property.

Regarding the labels property, the create issue API says that NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise..

As far as I understand when labels property is set then octokit.rest.issues.create method tries to create those labels first, and if label creation failed then github issue is created anyway but without the failed label.

The code was working fine but suddenly, 4 days ago, it stopped creating new labels. We authorize octokit as a github app which has all the read/write repository permissions selected.

I've tried running this code with a personal github PAT and it worked as expected (i.e. necessary labels were created).

So overall I'm not really sure where to proceed, help.

Thanks in advance.

Versions

octokit: 2.0.14
@octokit/rest: 21.1.0
node: 20.10.0

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: SupportAny questions, information, or general needs around the SDK or GitHub APIs

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions