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

Automatically set the default branch #5242

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Automatically set the default branch #5242

merged 1 commit into from
Feb 8, 2024

Conversation

ferrarimarco
Copy link
Collaborator

Proposed changes

Get the default branch from the GitHub Actions event payload when running on GitHub Actions. Default to 'master', as before, otherwise.

Close #4788

Readiness checklist

In order to have this pull request merged, complete the following tasks.

Pull request author tasks

  • I included all the needed documentation for this change.
  • I provided the necessary tests.
  • I squashed all the commits into a single commit.
  • I followed the Conventional Commit v1.0.0 spec.
  • I wrote the necessary upgrade instructions in the upgrade guide.
  • If this pull request is about and existing issue,
    I added the Fix #ISSUE_NUMBER label to the description of the pull request.

Super-linter maintainer tasks

  • Label as breaking if this change breaks compatibility with the previous released version.
  • Label as either: automation, bug, documentation, enhancement, infrastructure.

Get the default branch from the GitHub Actions event payload when
running on GitHub Actions. Default to 'master', as before, otherwise.
Copy link
Contributor

@zkoppert zkoppert left a comment

Choose a reason for hiding this comment

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

🚀

@ferrarimarco ferrarimarco added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit fe6e29b Feb 8, 2024
9 checks passed
@ferrarimarco ferrarimarco deleted the default-branch branch February 8, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request O: backlog 🤖 Backlog, stale ignores this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set the default for DEFAULT_BRANCH to ${{ github.event.repository.default_branch }}
2 participants