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

Simplify GitHub Action (fork PR) #32

Closed

Conversation

Eric-Arellano
Copy link
Collaborator

Makes better use of GitHub Action's sensible defaults:

  • No need to enumerate every type of pull_request event. The default already does what you want: running every time you make a change to the PR
  • No need to set arguments to actions/checkout
    • fetch_depth: 0 results in fetching every single commit, which gets slow as the repository grows. You probably only need the latest commit to run linters and tests

@Eric-Arellano
Copy link
Collaborator Author

Hm, the tests won't work because I'm running CI from a fork. Options:

  • give me write access
    • Be careful who you do this with, and consider revoking access after my changes from this week. You want to minimize security risk
  • merge on red (not recommended)
  • one of you recreates the PR on your own branch

@y4izus
Copy link
Collaborator

y4izus commented Aug 1, 2024

Thank you @Eric-Arellano !! I will give you Write access these days. I think is the better option right now :)

@Eric-Arellano Eric-Arellano changed the title Simplify GitHub Action Simplify GitHub Action (fork PR) Aug 1, 2024
@Eric-Arellano
Copy link
Collaborator Author

Sg. I'll recreate this from a new branch once I have write access.

@Eric-Arellano Eric-Arellano deleted the EA/simplify-gh-action branch August 1, 2024 15:00
Eric-Arellano added a commit that referenced this pull request Aug 8, 2024
Built on top of #32.

Makes better use of GitHub Action's sensible defaults:

* No need to enumerate every type of `pull_request` event. The default already does what you want: running every time you make a change to the PR
* No need to set arguments to `actions/checkout`
    - `fetch_depth: 0` results in fetching every single commit, which gets slow as the repository grows. You probably only need the latest commit to run linters and tests
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.

2 participants