Skip to content

Add functionality to retrack applications to main for closed PRs #92

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

zygen
Copy link
Contributor

@zygen zygen commented Jun 5, 2025

Devs often forget to do this step which causes constant confusion. This will enable a workflow that creates a PR that can be merged to do this easily.

@zygen zygen requested a review from glasser June 5, 2025 21:29
action.yml Outdated
default: 'false'

cleanup-target-repository:
description: 'Repository to check PR status for cleanup (required when cleanup-closed-pr-tracking is true). Format: owner/repo'
Copy link
Member

Choose a reason for hiding this comment

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

Can't this just be the same repository that is specified in the file's git.repoURL, like in the call to resolveRefToSHA in checkRefsAgainstGitHubAndModifyScalars?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes indeed!

src/index.ts Outdated
gitHubClient: GitHubClient,
logger: PrefixingLogger,
): Promise<{ newContents: string; changesCount: number }> {
const doc = yaml.parseDocument(contents);
Copy link
Member

Choose a reason for hiding this comment

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

Have you taken a look at our parseYAML function and the big comment in it? I think that using parseDocument loses formatting (and maybe comments?).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this is nicer, I reworked it to use parseYAML and I just needed a minor tweak of findTrackables to make it work.

- Use the existing parseYaml and findTrackables
- Remove extra input
@zygen
Copy link
Contributor Author

zygen commented Jun 6, 2025

There was a weird build issue, but I just had to delete some extra files that somehow got in my dist/.

@zygen zygen force-pushed the cmoore/foun-566-2 branch 2 times, most recently from 03b7696 to e477025 Compare June 6, 2025 20:14
@glasser
Copy link
Member

glasser commented Jun 6, 2025

Curious what the weird files were; there is sometimes code-splitting that happens in the bundler...

@zygen
Copy link
Contributor Author

zygen commented Jun 6, 2025

~170 files in dist/protos/subdirs. I can't get it to generate them again, so 🤷

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