Skip to content

ci: Add lables via rest api#61735

Open
kesselb wants to merge 1 commit into
masterfrom
chore-ai-policy
Open

ci: Add lables via rest api#61735
kesselb wants to merge 1 commit into
masterfrom
chore-ai-policy

Conversation

@kesselb

@kesselb kesselb commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

gh pr edit --add-label runs a GraphQL query that also fetches org/login fields requiring read:org, which COMMAND_BOT_PAT doesn't have. The REST labels endpoint only needs public_repo, matching the label-creation step already using REST above it.

Example run at https://github.com/nextcloud/server/actions/runs/28626606473/job/84894403023?pr=61735.

TODO

  • Update upstream once accepted

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

gh pr edit --add-label runs a GraphQL query that also fetches
org/login fields requiring `read:org`, which COMMAND_BOT_PAT doesn't
have. The REST labels endpoint only needs `public_repo`, matching the
label-creation step already using REST above it.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb requested a review from a team as a code owner July 2, 2026 22:52
@kesselb kesselb requested review from Altahrim, come-nc, leftybournes and salmart-dev and removed request for a team July 2, 2026 22:52
@kesselb kesselb self-assigned this Jul 2, 2026
@kesselb kesselb added the 3. to review Waiting for reviews label Jul 2, 2026
@kesselb kesselb requested a review from AndyScherzinger July 2, 2026 22:56

@AndyScherzinger AndyScherzinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WOOHOO

Thanks a lot @kesselb 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants