Skip to content

feat(pr-classifiers): Comment as the GitHub App - #190

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
philprime/feat/pr-classifiers-comment-as-app
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
philprime/feat/pr-classifiers-comment-as-app

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Adds an opt-in comment-as-app input. When it and publish-comment are true, the action creates a token from the same app as app-client-id, scoped to the calling repository and limited to pull-requests: write. It passes that token and <app-slug>[bot] to the classifiers action as comment-token and comment-author, so the summary comment comes from the app instead of github-actions[bot]. Labels still use the workflow token. With the input off, nothing changes.

The new inputs come from getsentry/classifiers#14.

Open decisions:

  • Blocked on getsentry/classifiers#14. The default classifiers-ref still points to a commit without comment-token or comment-author. After that PR merges, this PR needs to bump the default to the merge commit.
  • Callers that turn this on need the classifiers app installed on their repository with Pull requests write access. Right now it only reads getsentry/classifiers.

via @philprime.

--

View Session [Sentry]

Add comment-as-app, which writes the summary comment with a token of the
classifiers app scoped to the calling repository's pull requests,
instead of the workflow token as github-actions[bot].

Co-Authored-By: Phil Niedertscheider <30923007+philprime@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.
📖

✅ curl is available: curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.22 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13

Generated by 🚫 dangerJS against 481c62c

@philprime
philprime marked this pull request as ready for review November 30, 2026 15:16
@sentry-junior
sentry-junior Bot requested a review from philprime November 30, 2026 15:16
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.

4 participants