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

Create issue-metrics.yml #239

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Create issue-metrics.yml #239

merged 2 commits into from
Feb 16, 2024

Conversation

vikrampm1
Copy link
Contributor

Description of the Change

This PR adds a GitHub Action to pull monthly metrics such as "Time to response","Time to close","Time in label" etc. into a new GitHub issue. Reference: https://github.com/github/issue-metrics.

Closes #

How to test the Change

Changelog Entry

Dev - Added a new GitHub action to pull monthly metrics.

Credits

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@vikrampm1 vikrampm1 requested a review from jeffpaul February 16, 2024 14:38
@vikrampm1 vikrampm1 self-assigned this Feb 16, 2024
Copy link
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

This is great, let's get this in and see what the results look like. One thing we should consider is whether we want:

  1. to run this action in all the repos we want to track with results stored in each repo
  2. to run this action in all the repos we want to track with results stored in the .github repo
  3. to run this action in the .github repo and referencing all the repos we want to track with results stored in each repo
  4. to run this action in the .github repo and referencing all the repos we want to track with results stored in the .github repo

uses: github/issue-metrics@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEARCH_QUERY: 'repo:10up/insert-special-characters is:issue created:${{ env.last_month }} -reason:"not planned"'
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if this needs the -reason:"not planned" flag, but we can run this and see what happens.

@jeffpaul
Copy link
Member

Leaving the https://github.com/github/issue-metrics/blob/main/docs/example-workflows.md#multiple-repositories-example reference here in case we want to consider options 3 or 4 above

@jeffpaul jeffpaul merged commit 1f68483 into develop Feb 16, 2024
11 checks passed
@jeffpaul jeffpaul deleted the issue-metrics branch February 16, 2024 16:54
@jeffpaul jeffpaul restored the issue-metrics branch February 16, 2024 16:55
@jeffpaul jeffpaul added this to the 1.2.0 milestone Feb 16, 2024
@jeffpaul jeffpaul mentioned this pull request Feb 16, 2024
@jeffpaul
Copy link
Member

Seeing that the two test runs I did here: #241, #242. If we keep these metrics within the individual repos (and not in the .github repo), then it would be awesome if the action would add the monthly metrics as a comment on an existing issue (perhaps as a variable in the workflow file so that we could link directly to a 2024/2025/etc metrics issue) and then pin that issue in the repo.

It would be helpful to give this a try in the .github repo pulling in 2-3 OSP repos to see how it looks there, curious if that data goes into a single issue or not and how well it delineates the names of the repos in that content.

@vikrampm1
Copy link
Contributor Author

Seeing that the two test runs I did here: #241, #242. If we keep these metrics within the individual repos (and not in the .github repo), then it would be awesome if the action would add the monthly metrics as a comment on an existing issue (perhaps as a variable in the workflow file so that we could link directly to a 2024/2025/etc metrics issue) and then pin that issue in the repo.

Yea, if we can able to achieve that scenario then I think that would be great. From reading the instructions on the repo page I think it'll only create a new issue every time it runs (for the time frame we set).

It would be helpful to give this a try in the .github repo pulling in 2-3 OSP repos to see how it looks there, curious if that data goes into a single issue or not and how well it delineates the names of the repos in that content.

We can try this and see how that works out.

@jeffpaul jeffpaul deleted the issue-metrics branch November 8, 2024 14:14
@dkotter dkotter modified the milestones: 1.2.0, 1.1.3 Nov 15, 2024
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.

3 participants