Skip to content

fix: make DIRECTORY workflow compatible with protected master#1893

Open
nickzerjeski wants to merge 1 commit intoTheAlgorithms:masterfrom
nickzerjeski:fix-update-directory-protected-branch-1219
Open

fix: make DIRECTORY workflow compatible with protected master#1893
nickzerjeski wants to merge 1 commit intoTheAlgorithms:masterfrom
nickzerjeski:fix-update-directory-protected-branch-1219

Conversation

@nickzerjeski
Copy link
Copy Markdown

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

This updates .github/workflows/UpdateDirectory.yml so it no longer attempts direct pushes to protected master.
Instead, it opens a PR containing the generated DIRECTORY.md update.

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new JavaScript files are placed inside an existing directory.
  • All filenames should use the UpperCamelCase (PascalCase) style. There should be no spaces in filenames.
  • All new algorithms have a URL in their comments that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Fixes #1219

@nickzerjeski nickzerjeski requested a review from appgurueu as a code owner April 13, 2026 09:01
Copilot AI review requested due to automatic review settings April 13, 2026 09:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the UpdateDirectory GitHub Actions workflow so DIRECTORY.md updates are proposed via an automated pull request instead of attempting to commit/push directly to a protected master branch.

Changes:

  • Update workflow trigger to run on pushes to master.
  • Replace direct git commit && git push with peter-evans/create-pull-request to open a PR containing only DIRECTORY.md changes.
  • Add explicit workflow token permissions needed to create branches/commits and open PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.91%. Comparing base (5c39e87) to head (c67cc87).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1893   +/-   ##
=======================================
  Coverage   85.91%   85.91%           
=======================================
  Files         379      379           
  Lines       19778    19778           
  Branches     3016     3016           
=======================================
  Hits        16993    16993           
  Misses       2785     2785           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

[BUG] DIRECTORY.md workflow not running due to protected branch

3 participants