github / issue-metrics

Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc.
https://github.blog/2023-07-19-metrics-for-issues-pull-requests-and-discussions/
MIT License
372 stars 46 forks source link

fix: allow access to forked pull request labels for release #285

Closed jmeridth closed 2 months ago

jmeridth commented 2 months ago

Pull Request

Proposed Changes

Release fails if pull request is from a fork currently because we can't access the labels on the forked pull request which helps us determine semver for next release.

Saw this after merging https://github.com/github/issue-metrics/pull/283 (from a fork)

Add pull_request_target to release action workflow

I am not worried about the security implications with us checking out the forked pull requests code. This action only fires after a merge to main so this means the pull request code has been reviewed by a maintainer. We are post-CI/code run.

Readiness Checklist

Author/Contributor

Reviewer