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

As a workflow improvment it would be cool if PR request are created automatically #93

Open
danielsiegl opened this issue Apr 22, 2022 · 11 comments

Comments

@danielsiegl
Copy link
Collaborator

When I create a branch attached to an issue - I would like the PR to be created automatiacally to make it even easier to understand.

@danielsiegl danielsiegl changed the title As a workflow improvment it would be cool if PR request automatically As a workflow improvment it would be cool if PR request are created automatically Apr 22, 2022
@danielsiegl
Copy link
Collaborator Author

danielsiegl commented Apr 22, 2022

The rule could be simple:
A) For every branch that is not main - if it is pushed check if a pull request exists - if not create a pull request?

@danielsiegl
Copy link
Collaborator Author

@danielsiegl
Copy link
Collaborator Author

@FlorianBeerRB I tried - but I failed so far to run it on all branches but "main"
https://github.com/LieberLieber/LemonTree.Automation.Workflows/actions/workflows/CreatePRonPush.yml

@danielsiegl
Copy link
Collaborator Author

Interesting finding - it seems cause the .yml was missing in my orignal test branch - it would not run if I push to said branch....

@danielsiegl
Copy link
Collaborator Author

Creation of PR works now - but they are not linked to the issue example:
#98

@danielsiegl
Copy link
Collaborator Author

The workflow got better - and worse at the same time.
A) PR is created autmatically
but
B) PR is not automatically linked to the Issue

@danielsiegl
Copy link
Collaborator Author

The problem I guess is that the chosen action doesn't support to set "linked issues" under development

@danielsiegl
Copy link
Collaborator Author

NotLinkedIssueOnAutoPR

@danielsiegl
Copy link
Collaborator Author

danielsiegl commented May 4, 2022

PR can be created on creation of a branch if you add 1 empty commit.

in short

on:
 create:

git commit --allow-empty -m empty git push

@danielsiegl
Copy link
Collaborator Author

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

No branches or pull requests

2 participants