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

chore(infra): cleanup triage workflows #2222

Merged
merged 8 commits into from
Sep 19, 2023
Merged

Conversation

julio-lopez
Copy link
Contributor

@julio-lopez julio-lopez commented Jul 22, 2023

Change Overview

Split the triage.yml workflow into 2 separate ones, one for PRs and another one for issues, since these jobs execute on different triggered events (pull_request & issues). This also simplifies the conditions in the jobs and the steps, since it is no longer necessary to check for the type of event that triggered the workflow.

It also prevents running the triage PR workflow for PRs submitted by dependabot.
This is failing because the required credential is not available for PRs submitted by dependabot.

Allow running the "comment" step on PRs submitted from forks, and avoid adding a rather useless comment on PRs opened from the same repo.

Other minor cleanups.

Pull request type

  • 🚧 Work in Progress
  • 🐹 Trivial/Minor
  • 🐛 Minor bug fix

Test Plan

  • ⚡ CI: GHA run

  • No automatically added comment should be added in this PR. In order to re-run the workflow it is necessary to close and re-open the PR :(

  • The PR should be triaged nonetheless and added to the appropriate column in the project.

  • The triage issues workflow can only be tested after merging this PR into the main branch (AFAICT).

See sample run of the triage-pr.yaml workflow at #2336 (https://github.com/kanisterio/kanister/actions/runs/6192490531/job/16812642576)

- Prevent funning the triage PR workflow for dependabot submitted PRs.
  This is failing because the required credential is not available for
  that workflow on dependabot submitted PRs.

- Add names to jobs.
@julio-lopez julio-lopez marked this pull request as ready for review September 15, 2023 00:31
@julio-lopez julio-lopez changed the title chore(infra): tweaks to triage workflow chore(infra): cleanup triage workflows Sep 15, 2023
@julio-lopez julio-lopez enabled auto-merge (squash) September 19, 2023 00:46
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM

@julio-lopez julio-lopez removed the kueue label Sep 19, 2023
@julio-lopez julio-lopez merged commit bf03057 into master Sep 19, 2023
12 of 13 checks passed
@julio-lopez julio-lopez deleted the fix/triage-workflow branch September 19, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants