Skip to content

Conversation

@rem1776
Copy link
Contributor

@rem1776 rem1776 commented Oct 13, 2022

Description
adds an action that will submit a pull request automatically after releases in order to add the -dev suffix to the autotools version and then assign me to review + merge it.

This might require additional permissions in the github settings (mentioned in the action page), but in my testing I was able to do it with the default settings. It always makes a new branch (with a timestamp) so shouldn't affect anything else in the repo.

One caveat is that the auto-generated PR won't run the CI workflows (at least not without additional work + messing with the tokens). Doesn't really matter though since the actual release tag will already be getting tested in the CI whenever this runs.

There is also a small bug fix here for the documentation action, apparently github thought it was a good idea to count the release trigger as three different events.

How Has This Been Tested?
Here's the generated PR from my fork:
rem1776#50
i just made releases on my fork till it worked so it should be the same end result

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream xodules
  • New check tests, if applicable, are included
  • make distcheck passes

delete-branch: true # delete afer merge
title: Append dev to version number post-release
body: automated change, adds '-dev' to the version number upon releases
reviewers: rem1776
Copy link
Member

Choose a reason for hiding this comment

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

Is the reviewers required? Will rem1776 be the only required reviewer? This could cause a potentially dangerous situation if you're on leave or away at the time of a release and a backup person is required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think it adds the other reviewers based on codeowners like it does for other prs, but i mean it's always the same changes so i'll just add you and rusty to that list

Copy link
Member

Choose a reason for hiding this comment

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

Can you get rid of reviewers entirely? Then it should just add the 3 of us, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that works too

laurenchilutti
laurenchilutti previously approved these changes Oct 17, 2022
@rem1776 rem1776 merged commit d8208e6 into NOAA-GFDL:main Nov 8, 2022
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