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 PRs on other repos with GitHub CLI #1765

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Apr 10, 2024

Description of proposed changes

Motivation: move away from 3rd party Actions.

No functional change here except removal of the PR number from outputs (URL is more directly available and useful)

Related issue(s)

Checklist

  • Checks pass, but they don't actually test these changes
  • If making user-facing changes, add a message in CHANGELOG.md summarizing the changes in this PR no functional changes
  • Create preview PRs on downstream repositories (run)
  • Preview PRs look good
  • Job summary has PR links
  • Running again updates existing PRs (run)
  • Post-merge: remove peter-evans/create-pull-request from allow list in GitHub org settings (it was only used in this repo)

@victorlin victorlin self-assigned this Apr 10, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 18:26 Inactive
@victorlin victorlin force-pushed the victorlin/update-make_pr_for_downstream_repo branch from 16b993f to 9a43f17 Compare April 10, 2024 19:14
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 19:14 Inactive
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 19:16 Inactive
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 20:18 Inactive
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 20:48 Inactive
@victorlin victorlin force-pushed the victorlin/update-make_pr_for_downstream_repo branch from fc4417f to f3de41f Compare April 10, 2024 21:56
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 21:56 Inactive
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 22:21 Inactive
Job summaries are more visible than log messages from a step.
@victorlin victorlin force-pushed the victorlin/update-make_pr_for_downstream_repo branch from c510792 to 1fcc625 Compare April 10, 2024 22:37
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 22:37 Inactive
@victorlin victorlin force-pushed the victorlin/update-make_pr_for_downstream_repo branch from 1fcc625 to 8505757 Compare April 10, 2024 22:59
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 23:00 Inactive
No functional change here except removal of the PR number from the job
summary (URL is more directly available and useful).
@victorlin victorlin force-pushed the victorlin/update-make_pr_for_downstream_repo branch from 8505757 to c448302 Compare April 10, 2024 23:00
@victorlin victorlin temporarily deployed to auspice-victorlin-updat-uedjwa April 10, 2024 23:00 Inactive
@victorlin victorlin marked this pull request as ready for review April 10, 2024 23:28
@victorlin victorlin requested a review from a team April 10, 2024 23:28
Copy link
Contributor

@joverlee521 joverlee521 left a comment

Choose a reason for hiding this comment

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

Nice use of the action summary! Changes look good to me 👍

@@ -81,10 +81,17 @@ jobs:
This will surface any issues that can arise from merging the PR in Auspice. To address these issues locally, update the source branch (e.g. with a git rebase).

This message and corresponding commits were automatically created by a GitHub Action from [nextstrain/auspice](https://github.com/nextstrain/auspice).
draft: true
delete-branch: true
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking

I don't see an equivalence for the delete-branch input, but I'm not sure we even used it as intended?

Copy link
Member Author

@victorlin victorlin Apr 11, 2024

Choose a reason for hiding this comment

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

From the action's README:

If a pull request exists and new changes on the base branch make the pull request unnecessary (i.e. there is no longer a diff between the pull request branch and the base), the pull request is automatically closed. Additionally, if delete-branch is set to true the branch will be deleted.

Yeah, I don't think we actually used it - we just close the PRs and delete the branches manually, which is fine.

@victorlin victorlin merged commit d38af86 into master Apr 11, 2024
22 checks passed
@victorlin victorlin deleted the victorlin/update-make_pr_for_downstream_repo branch April 11, 2024 19:14
@victorlin victorlin mentioned this pull request Apr 15, 2024
7 tasks
@tsibley
Copy link
Member

tsibley commented Apr 19, 2024

Motivation: move away from 3rd party Actions.

Very nice to see!

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