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

COMP: Fix commit-message workflow integration with private repository #67

Conversation

jcfr
Copy link
Collaborator

@jcfr jcfr commented Aug 21, 2024

Updates the "pre-commit" workflow to ensure compatibility when reused in a private repository by addressing pull request permissions.

The adjusted repository permissions allows to support the gsactions/commit-message-checker action , which relies on GraphQL requiring permission similar to the "Get a Pull Request" REST endpoint.

It fixes the following error encountered during testing, indicating a permissions issue:

> Run gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee
> Error: GraphqlResponseError: Request failed due to following response errors:
> - Resource not accessible by integration

List of Slicer changes:

$ git shortlog 80a7735c1a..f2b79dcfcb --no-merges
Jean-Christophe Fillion-Robin (1):
      BUG: Update "pre-commit" workflow to support reuse from private project

Updates the "pre-commit" workflow to ensure compatibility when
reused in a private repository by addressing pull request permissions.

The adjusted repository permissions allows to support the
`gsactions/commit-message-checker` action , which relies on GraphQL
requiring permission similar to the "Get a Pull Request" REST endpoint.

It fixes the following error encountered during testing, indicating a
permissions issue:

```
> Run GsActions/commit-message-checker@16fa2d5
> Error: GraphqlResponseError: Request failed due to following response errors:
> - Resource not accessible by integration
```

List of Slicer changes:

```
$ git shortlog 80a7735c1a..f2b79dcfcb --no-merges
Jean-Christophe Fillion-Robin (1):
      BUG: Update "pre-commit" workflow to support reuse from private project
```
@jcfr jcfr force-pushed the fix-reuse-commit-message-github-workflow-from-private-repo branch from 6d86154 to 002da7c Compare August 21, 2024 04:48
@jcfr jcfr merged commit 8fce0ee into KitwareMedical:main Aug 21, 2024
3 checks passed
@jcfr jcfr deleted the fix-reuse-commit-message-github-workflow-from-private-repo branch August 21, 2024 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant