Skip to content

Update build to include PR's in workflows - #33

Merged
KubaZ2 merged 4 commits into
NetCordDev:alphafrom
csmir:patch-1
Aug 9, 2024
Merged

Update build to include PR's in workflows#33
KubaZ2 merged 4 commits into
NetCordDev:alphafrom
csmir:patch-1

Conversation

@csmir

@csmir csmir commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

Testing if this runs build

@KubaZ2

KubaZ2 commented Aug 8, 2024

Copy link
Copy Markdown
Member

It's not the best idea I think, because on pull request only activates when the pull request is created, it won't trigger for additional pushes to the source branch.

Comment thread .github/workflows/build.yml Outdated
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
@csmir
csmir requested a review from KubaZ2 August 8, 2024 14:42
@csmir

csmir commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

It is not a bad idea I think, it will rerun the build process every time a new push is made to the pull request. It can even be installed that the PR must succeed build before being able to be merged.

Comment thread .github/workflows/build.yml Outdated
Co-authored-by: Kuba_Z2 <77853483+KubaZ2@users.noreply.github.com>
@KubaZ2

KubaZ2 commented Aug 8, 2024

Copy link
Copy Markdown
Member

It is not a bad idea I think, it will rerun the build process every time a new push is made to the pull request. It can even be installed that the PR must succeed build before being able to be merged.

You are right, sorry, what do you think about adding types: [opened, synchronize]? That's what is used in https://github.com/NetCordDev/NetCord/blob/alpha/.github/workflows/documentation-preview.yml#L5

@csmir

csmir commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

You are right, sorry, what do you think about adding types: [opened, synchronize]? That's what is used in https://github.com/NetCordDev/NetCord/blob/alpha/.github/workflows/documentation-preview.yml#L5

The only thing you lose out on in this circumstance is when the PR is reopened. All further logic remains the same. I honestly do not think it is necessary

@KubaZ2

KubaZ2 commented Aug 8, 2024

Copy link
Copy Markdown
Member

Not really, there are many activity types:

  • assigned
  • unassigned
  • labeled
  • unlabeled
  • opened
  • edited
  • closed
  • reopened
  • synchronize
  • converted_to_draft
  • locked
  • unlocked
  • enqueued
  • dequeued
  • milestoned
  • demilestoned
  • ready_for_review
  • review_requested
  • review_request_removed
  • auto_merge_enabled
  • auto_merge_disable

Also I think running on reopened is not needed

@csmir

csmir commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

My bad, I read this:
image
and thought that was all it was

@KubaZ2

KubaZ2 commented Aug 8, 2024

Copy link
Copy Markdown
Member

Well, you are right then, we would only lose reopened there, though I still think reopened is not needed

Comment thread .github/workflows/build.yml
@KubaZ2
KubaZ2 merged commit 3fca4d4 into NetCordDev:alpha Aug 9, 2024
@KubaZ2

KubaZ2 commented Aug 9, 2024

Copy link
Copy Markdown
Member

Thanks!

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