Hi John,

the main workflow is triggered by PR (open and sync) and push to any branch. This was done so that release managers can sync between master and delivery branches (and the other way around). WIP feature branches like CND get some testing done too.

if you clone the project you getting the same behavior, just on your own copy.

its defined on the very top of the .github/workflows/main.yml file in your master branch.


Additionally to that, you can turn actions off entirely in your clone via projects settings (I thought this was the default of fresh clones, I might be wrong),

if you look at my copy for example you see that there is no actions tab since I don't need it most of the time:

https://github.com/mbien/netbeans


a contributor can simply:

 1) clone the repo, disable actions if they aren't yet

 2) work on the changes, run the tests of the module and the commit validation tests locally

 3) push to your clone and press the create PR button, this will now run the tests in context of the PR


So I think this is working as intended. But if you have suggestions how to improve this, feedback welcome.

best regards,

michael


On 12.10.22 03:56, John Neffenger wrote:
I was surprised to see test jobs triggered when I synced the upstream master branch with the master branch of my fork:

https://github.com/jgneff/netbeans/actions/runs/3228261286

I expected tests to be triggered only when pushing a commit to the branch of a pull request.

For example, on other projects, I'm used to running the following commands without any consequences:

$ git switch master
$ git fetch upstream
$ git merge upstream/master
$ git push origin master

On those projects, the tests run only when I merge the changes into my pull request branch, like so:

$ git switch pr-branch
$ git merge master
$ git push origin pr-branch

Did this work as expected?

Thank you,
John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to