You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 APIsays 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.
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
We authorize octokit as a github app which has read/write permissions for content, issues and PRs.
When new github issue is created and there's a new label (which is not yet present in the repository) then the issue is created but without a new label.
But when we manually create a new label before issue creation then, after issue creation, a newly created label is in place.
Expected behavior: octokit.rest.issues.create() creates a new github issue with all the labels specified in the labels property even if those labels are not yet created in the repository.
It only happens when we authorize octikit as a github app, I couldn't reproduce it using github PAT.
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, thecreate issue API
says thatNOTE: 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 thenoctokit.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
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: