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

Add a branch matcher to the server side repo config #1383

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Add a branch matcher to the server side repo config #1383

merged 1 commit into from
Feb 24, 2021

Commits on Feb 24, 2021

  1. Add a branch regex matcher to the server side repo config

    * Add a branch regex to the repo.yaml config to allow Atlantis to
    accept only pull requests with a given base branch (the branch
    a PR would merge _into_).
    * `branch` is optional. By default its unset and Atlantis will match
    webhooks for pull requests for any branch (no change)
    
    Match any PR,
    
    ```
    repos:
      - id: /.*/
        branch: /.*/
    ```
    
    Match only PRs with master or main base branch.
    
    ```
    repos:
      - id: /.*/
        branch: /(main|master)/
    ```
    
    Some repos have special pull request branching practices. For example,
    plan/apply from feature branches merging into master, but separate flows
    for merging master into a release branch (where Atlantis isn't used).
    Adding a regex allows for flexible workflow options. For example, you
    could have Atlantis ignore "release" branches.
    Dalton Hubble committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    0d35199 View commit details
    Browse the repository at this point in the history