Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.0
Choose a base ref
...
head repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.0
Choose a head ref
  • 7 commits
  • 29 files changed
  • 4 contributors

Commits on Oct 6, 2023

  1. test: integration tests for main.js (#56)

    Part of #43
    
    This PR adds tests for
    [`main.js`](https://github.com/actions/create-github-app-token/blob/main/lib/main.js),
    similar to [the tests that already exist for
    `post.js`](https://github.com/actions/create-github-app-token/tree/main/tests).
    
    Specifically, it tests that:
    - `main` exits with an error when `GITHUB_REPOSITORY` is missing.
    - `main` exits with an error when `GITHUB_REPOSITORY_OWNER` is missing.
    - `main` successfully obtains a token when…
    - …the `owner` and `repositories` inputs are set (and the latter is a
    single repo).
    - …the `owner` and `repositories` inputs are set (and the latter is a
    list of repos).
    - …the `owner` input is set (to an org), but the `repositories` input
    isn’t set.
    - …the `owner` input is set (to a user), but the `repositories` input
    isn’t set.
      - …the `owner` input is not set, but the `repositories` input is set.
      - …neither the `owner` nor `repositories` input is set.
    
    ❧
    
    Architecturally, in order to keep individual tests concise, this PR adds
    `tests/main.js`, which:
    - sets commonly-used inputs, environment variables, and mocks, then
    - calls a callback function that can edit the variables and add
    additional mocks, then
    - runs `main.js` itself.
    
    The `tests/main-token-get-*.test.js` test files run `tests/main.js` with
    various scenario-specific callback functions.
    smockle authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    9b28355 View commit details
    Browse the repository at this point in the history
  2. test: add coverage (#58)

    gr2m authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    bdb2377 View commit details
    Browse the repository at this point in the history
  3. feat: use dash notation for inputs (deprecates underscore notation) (#59

    )
    
    Fixes #57 
    
    This PR implements the 3-step plan proposed by @gr2m in
    #57 (comment):
    
    > 1. Support both input types
    > 2. Log a deprecation warning for the old notation
    > 3. Add a test for deprecations
    
    Although this PR supports both input formats simultaneously, I opted
    _not_ to document the old format in the updated README. That’s a
    decision I’m happy to revisit, if y’all would prefer to have
    documentation for both the old and new formats.
    smockle authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    7b1d2ae View commit details
    Browse the repository at this point in the history
  4. docs: update skip-token-revoke input name (#61)

    This is a quick follow-up to #59. I was mid-review when it merged and
    noticed one instance of `skip_token_revoke` in the README that didn't
    get changed to `skip-token-revoke`. The PR merged just before I pushed a
    commit to fix it.
    parkerbxyz authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    b94a200 View commit details
    Browse the repository at this point in the history
  5. ci(release): use local version (#60)

    follow up to
    #59 (comment)
    
    ---------
    
    Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
    gr2m and parkerbxyz authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    998b875 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d21ec76 View commit details
    Browse the repository at this point in the history
  7. build(release): 1.5.0 [skip ci]

    # [1.5.0](v1.4.0...v1.5.0) (2023-10-06)
    
    ### Features
    
    * use dash notation for inputs (deprecates underscore notation) ([#59](#59)) ([7b1d2ae](7b1d2ae)), closes [#57](#57) [/github.com//issues/57#issuecomment-1751272252](https://github.com//github.com/actions/create-github-app-token/issues/57/issues/issuecomment-1751272252)
    semantic-release-bot committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    9d97a42 View commit details
    Browse the repository at this point in the history
Loading