Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Jan 30, 2026

Summary

This PR follows #314 to remove the temporary ".slack" directory made when the app settings command is run outside of a project directory.

Reviewers

The example below shows expected behavior after this change:

$ cd /tmp
$ slack app settings

🏠 App Settings
   https://api.slack.com/apps

$ ls .slack
".slack": No such file or directory (os error 2)

Requirements

@zimeg zimeg added this to the Next Release milestone Jan 30, 2026
@zimeg zimeg self-assigned this Jan 30, 2026
@zimeg zimeg requested a review from a team as a code owner January 30, 2026 03:43
@zimeg zimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch Use on pull requests to describe the release version increment labels Jan 30, 2026
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.63%. Comparing base (df8e8d4) to head (805b02f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #317      +/-   ##
==========================================
+ Coverage   64.61%   64.63%   +0.01%     
==========================================
  Files         212      212              
  Lines       17750    17751       +1     
==========================================
+ Hits        11470    11473       +3     
+ Misses       5206     5204       -2     
  Partials     1074     1074              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

📩 Leaving a thought related to changes for reviewers!

// If no apps exist, open the list of all apps known to the developer
if slackerror.Is(err, slackerror.ErrInstallationRequired) {
// Clean up any empty .slack directory and files created during app selection
clients.AppClient().CleanUp()
Copy link
Member Author

Choose a reason for hiding this comment

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

📝 note: Another approach might check first if this command was run outside of a project before prompting. I'm open to either change, but wanted to be more concise to start.

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

✅ Great find! Eventually, we will want to revisit how we create the .slack/ directory. A lot has changed in our approach (e.g. init) since the first implementation that auto-creates .slack/.

@mwbrooks mwbrooks merged commit 4ff1172 into main Jan 30, 2026
8 checks passed
@mwbrooks mwbrooks deleted the zimeg-fix-app-settings-dot-leftover branch January 30, 2026 23:12
@zimeg
Copy link
Member Author

zimeg commented Jan 30, 2026

@mwbrooks I appreciate the review so much and testing too - so glad we're catching this before release 🚢 💨

The ideas around init are so good I'm following-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants