Skip to content

Conversation

@haritamar
Copy link
Collaborator

@haritamar haritamar commented Mar 22, 2025

No description provided.

@linear
Copy link

linear bot commented Mar 22, 2025

@github-actions
Copy link
Contributor

👋 @haritamar
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

issues:
types: [closed]
pull_request:
pull_request_target:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The Pylon actions don't actually need an environment, since they don't need the PR code, just the PR details.
To be safe I actually removed the checkout which is unneeded.

@haritamar haritamar changed the title use pull_request_target + environment to allow running tests on contributor PRs Allow contributor PRs to run tests - CLI Mar 22, 2025
issues:
types: [closed]
pull_request:
pull_request_target:
Copy link
Contributor

Choose a reason for hiding this comment

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

In both repos we are checking: github.event_name == 'pull_request'. I don't think it will work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, thanks!

on:
workflow_dispatch:
pull_request:
pull_request_target:
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need to change it for the pre-commit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually we really don't
I thought about that it's running code, but it's not using secrets so no issues here, changing back

@haritamar haritamar merged commit 60060a1 into master Mar 25, 2025
3 checks passed
@haritamar haritamar deleted the ele-4203-make-it-possible-to-run-tests-on-contributor-prs branch March 25, 2025 10:27
hanalytics-data-service pushed a commit to hanalytics-data-service/hanalytics-elementary that referenced this pull request Apr 14, 2025
* use pull_request_target + environment to allow running tests on contributor PRs

* run-precommit should be on PR branch

* a bit safer condition

* CR fixes

* no need for pull_request_target in precommit
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