Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid GH board automation permissions error #1691

Merged

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

The GitHub board automation workflow is failing due to a permissions error when attempting to create a label for the wporg-theme-directory repo.

https://github.com/WordPress/wordpress-playground/actions/runs/10459089537/job/28962281299#step:3:7002

      ["message"]=>
      string(71) "adamziel does not have the correct permissions to execute `CreateLabel`"
    }
  }
}
Error processing card: WordPress/wporg-theme-directory#14 (WordPress Playground Integration Planning)
GraphQL query failed
Skipping that one and continuing...

Implementation details

This change simply skips label updates for the wporg-theme-directory repo for which we do not have permission to create new labels.

Testing Instructions (or ideally a Blueprint)

  • Test by manually running the board automation workflow from this PR's branch and make sure the workflow succeeds.
  • Try changing another issue's board status, rerun the workflow, and observe that the status is reflected in changed issue labels.
  • Restore the original issue status, rerun the workflow, and observe the original label has been restored.

@brandonpayton brandonpayton requested a review from adamziel August 19, 2024 19:33
@brandonpayton brandonpayton self-assigned this Aug 19, 2024
@brandonpayton brandonpayton added [Type] Bug An existing feature does not function as intended [Type] Repo / Project Management labels Aug 19, 2024
@brandonpayton brandonpayton temporarily deployed to project-board-automation August 19, 2024 19:33 — with GitHub Actions Inactive
@brandonpayton
Copy link
Member Author

It would be more resilient if we added a permissions check instead of just skipping label-setting for specific repos, but this will have to do for now.

@brandonpayton brandonpayton merged commit 298438b into trunk Aug 19, 2024
6 checks passed
@brandonpayton brandonpayton deleted the avoid-github-board-automations-permissions-error branch August 19, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Repo / Project Management
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant