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

Adding app-name-matcher to Action params #57

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Conversation

karoun
Copy link
Member

@karoun karoun commented Dec 5, 2024

What changed?

  • See title; app-name-matcher allows for directly matching app names or providing a regex
  • Restructured main.ts so that nothing runs upon module import (important for testing)

Test plan

  • Ensure tests pass locally
  • Ensure build CI step passes

@@ -0,0 +1,16 @@
name: "build"
Copy link
Member Author

Choose a reason for hiding this comment

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

Pulled into separate CI step so it can pass and be required by GitHub Branch Protection Rules

Copy link
Contributor

@rgoldfinger-quizlet rgoldfinger-quizlet left a comment

Choose a reason for hiding this comment

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

nice, love all the api improvements.


const changedFiles = await getChangedFiles();
core.info(`Changed files: ${changedFiles.join(', ')}`);
const appsAffected = repoApps.filter(partOfApp.bind(null, changedFiles));
Copy link
Contributor

Choose a reason for hiding this comment

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

potential behavior change here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good to flag, but no change. Not sure why I did this though, it's unnecessarily clever 😅

@karoun karoun merged commit 83e7db4 into master Dec 6, 2024
6 of 7 checks passed
@karoun karoun deleted the karoun/filter-apps branch December 6, 2024 22:31
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