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

Get The successful PR numbers as an output of the action #403

Closed
GuyAv46 opened this issue Dec 15, 2023 · 1 comment · Fixed by #404
Closed

Get The successful PR numbers as an output of the action #403

GuyAv46 opened this issue Dec 15, 2023 · 1 comment · Fixed by #404
Labels
enhancement New feature or request

Comments

@GuyAv46
Copy link
Contributor

GuyAv46 commented Dec 15, 2023

Is your feature request related to a problem? Please describe.

This request is related to the problem of triggering workflows from another workflow. I Don't like the solution of using PAT of some user that then gets the responsibility and ownership over the comments and the generated PRs.

In my case, the workflow I need to trigger can be triggered by un-drafting the PR. So the solution I'm thinking about is to have the following steps for the backporting job:

  1. checkout
  2. backport action, using the default GITHUB_TOKEN
  3. convert the PRs to draft ones using the gh CLI using a PAT
  4. convert the PRs back to "ready for review" using the gh CLI using a PAT again

This way I get the default behavior of the action-bot commenting and opening the PRs, but also triggering the workloads I need. One link is missing though...

Describe the solution you'd like

There is no simple way of getting the PRs that the action generated at the moment. I wish the action could output the new PR numbers as an output, so I could go over them and perform this additional steps.

I believe this could be a useful output for other users with other scenarios as well.

Additional option is to enable the PRs to be created as draft by the action. Will save me an API call but not much more :)

@GuyAv46 GuyAv46 added the enhancement New feature or request label Dec 15, 2023
@GuyAv46 GuyAv46 changed the title Get The successful PRs as an output of the action Get The successful PR numbers as an output of the action Dec 15, 2023
@korthout korthout linked a pull request Dec 16, 2023 that will close this issue
@korthout
Copy link
Owner

Released in v2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants