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

Fix: Set correct branch when it's not specified in the config #5844

Merged
merged 72 commits into from
Apr 3, 2024

Commits on Sep 27, 2021

  1. Configuration menu
    Copy the full SHA
    47ebd16 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61904c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3f1fc0 View commit details
    Browse the repository at this point in the history
  4. fix: format code

    bytrangle committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    90c9f9c View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2021

  1. Configuration menu
    Copy the full SHA
    43fbe2d View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Configuration menu
    Copy the full SHA
    8436443 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3edc3ce View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7ccbac6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e5407c3 View commit details
    Browse the repository at this point in the history
  5. feat(lib-util): add type annotation for the request config

    This requestConfig object will be passed to a helper for making API request
    bytrangle committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    3f0e711 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a506b5d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cc5f53a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cec8fbb View commit details
    Browse the repository at this point in the history
  9. feat(lib-util): add helper for getting default branch name

    Include switch clause to construct API urls for different backends
    bytrangle committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    69d124a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c726ee0 View commit details
    Browse the repository at this point in the history
  11. feat(gh-backend): add a boolean property to check if branch is config…

    …ured
    
    The property is needed so that we'll only set default branch when branch prop is missing in config
    bytrangle committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    bbafe77 View commit details
    Browse the repository at this point in the history
  12. feat(gh-backend): set prop branch as master when it's missing in …

    …config
    
    This is needed so that this property won't be empty when authorization is revoked.
    bytrangle committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    11e187c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    67904b1 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. Configuration menu
    Copy the full SHA
    37531e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b118aea View commit details
    Browse the repository at this point in the history
  3. feat(lib-util): allow token type to be undefined

    Reason: Requesting information from a public repo doesn't require token
    bytrangle committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    fa8e03c View commit details
    Browse the repository at this point in the history
  4. fix: format codes

    bytrangle committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    a2add4a View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2022

  1. Configuration menu
    Copy the full SHA
    eb9ce4b View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2022

  1. feat(github): removed setDefaultBranch function

    Reason: Default branch is already set when calling `authenticate` function
    bytrangle committed Mar 12, 2022
    Configuration menu
    Copy the full SHA
    8319d4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87350d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b0fda0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    542a1d9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3694c75 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2022

  1. fix (gitlab test): Repeat response for getting project info 2 times

    Reason: The endpoint for getting Gitlab project info is called twice.
    Need to specify the number of times to repeat the same response as 2, or Nock will throw an error.
    bytrangle committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    346ac8b View commit details
    Browse the repository at this point in the history
  2. fix(gitlab test): add property default_branch to project response

    REASON: Getting a single project through `/projects/:id` returns an
    object which contains `default_branch` property, among many other props.
    The mock response needs to convey that.
    bytrangle committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    714a57e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f77dba5 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2022

  1. feat(lib util api): change function name

    Change from `constructUrl` to `constructUrlWithParams` to indicate that
    the returned url may contain query string
    bytrangle committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    9c14584 View commit details
    Browse the repository at this point in the history
  2. feat(lib-util api): Change variable name for storing API roots

    Change from `rootApi` to `apiRoots` to indicate that the varible contains
    multiple values
    bytrangle committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    acd47a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    98541a3 View commit details
    Browse the repository at this point in the history
  4. feat(lib-util api): Change the returned value for getDefaultBranchName

    Reason: There's no `null` value for default_branch
    bytrangle committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    7dc9dae View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1ecd946 View commit details
    Browse the repository at this point in the history
  6. feat(api test): Add default values for mocking API

    Default values include: default branch name, mock tokens and mock repo slug
    bytrangle committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    efa741f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7bf6724 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2dfa3f6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ef664f6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    89a2806 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Configuration menu
    Copy the full SHA
    54f4314 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. feat(jest config): add moduleNameMapper for GitHub and BitBucket

    Required for the test that checks setDefaultBranchName is called in lib-util to work
    bytrangle committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    183a0c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02ef43c View commit details
    Browse the repository at this point in the history
  3. feat(lib-util test): add owner login value for Github's repo response

    The authenticate method of Github API wrapper extracts owner.login from repo resp
    bytrangle committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    5d1855c View commit details
    Browse the repository at this point in the history
  4. feat(lib-util test): change access level for Gitlab to 30

    Reason: If access level is under 30, Gitlab package will throw error
    bytrangle committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    b03d6a8 View commit details
    Browse the repository at this point in the history
  5. feat(lib-util test): add mock response for getting a user

    The authenticate method of each backend requires this
    bytrangle committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    13f0863 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1aba0da View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1f76df9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    394dc9b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0fc96ab View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6eb2ac3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6bfcf09 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    53f143a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    38f73a4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    af9cd9b View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Configuration menu
    Copy the full SHA
    a5da48a View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Configuration menu
    Copy the full SHA
    14ddaa7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02311f4 View commit details
    Browse the repository at this point in the history
  3. style: format files

    erezrokah committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    1789e6f View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    34375f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f6de72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ec0ff89 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. Configuration menu
    Copy the full SHA
    48e7175 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    676631f View commit details
    Browse the repository at this point in the history

Commits on May 26, 2022

  1. Configuration menu
    Copy the full SHA
    614a5b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20caf5f View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    8db27d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad161df View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Configuration menu
    Copy the full SHA
    d4e4fe3 View commit details
    Browse the repository at this point in the history
  2. fix: add missing import

    demshy committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    c6b05f8 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    5827471 View commit details
    Browse the repository at this point in the history