[PR #354] [MERGED] Set the default branch inside the event data #1421

Closed
opened 2026-03-01 21:51:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/354
Author: @tomlazar
Created: 9/1/2020
Status: Merged
Merged: 9/2/2020
Merged by: @cplee

Base: masterHead: master


📝 Commits (3)

  • 3388e6d set ${{github.event.repository.default_branch}}
  • 7400685 change ok == false to !ok
  • 4034a4a Merge branch 'master' into master

📊 Changes

4 files changed (+40 additions, -0 deletions)

View changed files

📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+8 -0)
📝 pkg/runner/run_context.go (+30 -0)
📝 pkg/runner/runner.go (+1 -0)

📄 Description

This sets the ${{github.event.repository.default_branch}} to master by default or the value specified in a new --defaultbranch flag. This could also be extended to lookup the value from the git setting git config --get init.defaultBranch if the working directory is in a git repo.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/354 **Author:** [@tomlazar](https://github.com/tomlazar) **Created:** 9/1/2020 **Status:** ✅ Merged **Merged:** 9/2/2020 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`3388e6d`](https://github.com/nektos/act/commit/3388e6da74b89377ab84cc0a7f067c8c3af4f9c8) set ${{github.event.repository.default_branch}} - [`7400685`](https://github.com/nektos/act/commit/74006851af4b9a99c849fd77df28864a8a18b707) change `ok == false` to `!ok` - [`4034a4a`](https://github.com/nektos/act/commit/4034a4a9312387dda58ceabb66997033b8763bb3) Merge branch 'master' into master ### 📊 Changes **4 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+8 -0) 📝 `pkg/runner/run_context.go` (+30 -0) 📝 `pkg/runner/runner.go` (+1 -0) </details> ### 📄 Description This sets the `${{github.event.repository.default_branch}}` to `master` by default or the value specified in a new `--defaultbranch` flag. This could also be extended to lookup the value from the git setting `git config --get init.defaultBranch` if the working directory is in a git repo. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1421
No description provided.