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

Changed Workflow Trigger #232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sachin-panayil
Copy link
Contributor

Changed Workflow Trigger

Problem

I noticed that every push to main triggered a Repolinter PR to be setup. This seemed redundant as only once pass through of the repolinter checks should be necessary. After that, it should be triggered manually only.

Solution

Wrote a small script that uses the label repolinter-initialized to track if a Repolinter Results PR was sent for the first time. After its been sent for the first time, the workflow can only be triggered manually.

Result

Unnecessary PRs will no longer be sent and the PR will have the repolinter-initialized label

Test Plan

  • Tested this on the repolinter-test-1 repo
  • Tested on personal repo
  • Tested using cookiecutter template

Signed-off-by: Sachin Panayil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant