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

Fix monthly issue metrics workflow #867

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

jhkennedy
Copy link
Collaborator

@jhkennedy jhkennedy commented Nov 4, 2024

Our monthly issue metrics GitHub Actions workflow is supposed to close the issue once created, but fails to do so:
https://github.com/nsidc/earthaccess/actions/runs/11623230080/job/32369942886#step:6:10

Failure was because we didn't specify the repo so it tried to base it on a local git repository, but there wasn't one because we don't need to check out the repository for the rest of the action steps.

I've updated the action to have issue write permission (needed for the issue PATCH API request) as well as specifying the repo, which I confirm works in a directory with no git repository:

$ gh issue close 861 --reason "not planned" --repo nsidc/earthaccess
✓ Closed issue nsidc/earthaccess#861 (Monthly issue metrics report: 2024-10-01..2024-10-31)

I don't think there's much value to a changelog entry here, so I've not added one; happy to add one if anyone thinks otherwise.

Pull Request (PR) draft checklist - click to expand
  • Please review our
    contributing documentation
    before getting started.
  • Populate a descriptive title. For example, instead of "Updated README.md", use a
    title such as "Add testing details to the contributor section of the README".
    Example PRs: #763
  • Populate the body of the pull request with:
  • Update CHANGELOG.md with details about your change in a section titled
    ## Unreleased.
    If such a section does not exist, please create one. Follow
    Common Changelog for your additions.
    Example PRs: #763
  • Update the documentation and/or the README.md with details of changes to the
    earthaccess interface, if any.
    Consider new environment variables, function names,
    decorators, etc.

Click the "Ready for review" button at the bottom of the "Conversation" tab in GitHub
once these requirements are fulfilled. Don't worry if you see any test failures in
GitHub at this point!

Pull Request (PR) merge checklist - click to expand

Please do your best to complete these requirements! If you need help with any of these
requirements, you can ping the @nsidc/earthaccess-support team in a comment and we
will help you out!

  • Add unit tests for any new features.
  • Apply formatting and linting autofixes. You can add a GitHub comment in this Pull
    Request containing "pre-commit.ci autofix" to automate this.
  • Ensure all automated PR checks (seen at the bottom of the "conversation" tab) pass.
  • Get at least one approving review.

📚 Documentation preview 📚: https://earthaccess--867.org.readthedocs.build/en/867/

Copy link

github-actions bot commented Nov 4, 2024

Binder 👈 Launch a binder notebook on this branch for commit ba84843

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit c460d8e

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.72%. Comparing base (2f49c08) to head (c460d8e).
Report is 74 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

❗ There is a different number of reports uploaded between BASE (2f49c08) and HEAD (c460d8e). Click for more details.

HEAD has 10 uploads less than BASE
Flag BASE (2f49c08) HEAD (c460d8e)
14 4
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #867       +/-   ##
===========================================
- Coverage   73.88%   58.72%   -15.17%     
===========================================
  Files          31       13       -18     
  Lines        2003     1100      -903     
===========================================
- Hits         1480      646      -834     
+ Misses        523      454       -69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mfisher87
Copy link
Collaborator

I don't think there's much value to a changelog entry here, so I've not added one; happy to add one if anyone thinks otherwise.

💯 not useful to end-users, would only serve as noise IMO!

Copy link
Collaborator

@chuckwondo chuckwondo left a comment

Choose a reason for hiding this comment

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

nice!

@jhkennedy jhkennedy merged commit daf6924 into nsidc:main Nov 6, 2024
8 checks passed
@jhkennedy jhkennedy deleted the fix-issue-metrics branch November 6, 2024 00:48
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