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

Fix unarchiving a repo #164

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Conversation

winterqt
Copy link
Contributor

Before this change, toggleArchivedRepos would prevent the unarchiving of a repository because it didn't set the state repo's archived property to false.

Before this change, `toggleArchivedRepos` would prevent the unarchiving
of a repository because it didn't set the state repo's `archived` property
to `false`.
Copy link
Member

@galargh galargh left a comment

Choose a reason for hiding this comment

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

Another great catch! This is really surprising! I guess, throughout all these years, noone actually tried unarchiving a repo in any of the organizations I manage 😅

Looking at your PR, I noticed that the use of "action" and "runAction" is quite inconsistent in the current implementation. I tried to address this in #169 I also modified the test resources a bit there to make the test you added a little easier to read, I hope you don't mind. Thank you for adding it by the way. More test coverage would definitely be beneficial here 🙇

I'm going to merge this one as-is, and then I'll merge my follow-up. It should be easier that way.

@galargh galargh merged commit d160627 into ipdxco:master Apr 7, 2025
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