Tags: semantic-release/github
Tags
fix(success): PRs not recognized as resolved issues (#960) * feat(success): enhance `buildRelatedIssuesQuery` to include additional fields for `PullRequest` * feat(success): refactor `buildIssuesOrPRsFromResponseNode` to remove `type` parameter and include `__typename` in queries to use in its place * update doc * fix(success): correct `buildRelatedIssuesQuery` to use `issueOrPullRequest` for improved query flexibility * feat(tests): add `__typename` field to issues and pull requests in success tests for improved type handling * feat(tests): update test data to include `__typename` for PullRequest in integration tests --------- Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
fix: replace `searchAPI` usage with `GraphQL` in `findSRIssue` util (#… …907) * feat: add graphql query loader `loadGetSRIssuesQuery` to fetch SRIssues * chore: add new `RELEASE_FAIL_LABEL` constant * feat: integrate issues fetch with graphql * feat: add fallback to searchAPI for backward compatibility * feat: integrated config label in SRIssues search * fix: error `getSRIssue` graphql query label param type * fix: undefined `data` property destructed from graphql reponse * refactor: modified wrong `body` property in query * refactor: remove conditions from searchAPI fallback logic * refactor: replace `getSRIssues` graphql query `label` param with `filter` * feat: implement unique issue sorting to address fallback `backwardIssues` conflict * feat: modify `findSRIssue` integration in `success` script; add `logger` to its params; * feat: integrate opinionated `RELEASE_FAIL_LABEL` into `fail` script * chore: Questions and lint fixes * refactor: modified `findSRIssues` integration in `fail` script * test: fixed `findSRIssue` units test * test: fixed `fail` unit tests * test: fix integrations test * test: fixed `success` unit tests * test: `Verify, release and notify success` fix attempt * test: addressed `"Verify, release and notify success"` case in `integrations` * test: fix `success` units * test: fix `fail` units * refactor: remove error object from searchAPI fallback error handle * test: add new case `"Handle error in searchAPI fallback"` * Revert "refactor: remove conditions from searchAPI fallback logic" This reverts commit a478a2b. * modified `RELEASE_FAIL_LABEL` value to `semantic-release` * test: fix cases for conditional `searchAPI` fallback consumption * Update lib/resolve-config.js
feat: allow conditional skip on success and fail comments (#874) * feat: add `failCommentCondition` to `fail` script * feat: add `successCommentCondition` and `failCommentCondition` to `resolve-config` * feat: add `successCommentCondition` and `failCommentCondition` to `success` scipt * fix(build): lint * test: add `fail` case `Does not post comments if "failCommentCondition" is "false"` * test: add `fail` case for `Does not post comments on existing issues when "failCommentCondition" is "false"` * fix(build): lint * test(fail): add case for `Post new issue if none exists yet, but don't comment on existing issues when "failCommentCondition" is disallows it` * test(success): add case `Does not comment on issues/PR if "successCommentCondition" is "false"` * Update test/fail.test.js Co-authored-by: Jonas Schubert <jonas.schubert.projects@web.de> * test(success): add case for `Add comment and label to found issues/associatedPR using the "successCommentCondition"` * nits * test(success): add case for `Does not comment/label found associatedPR when "successCommentCondition" disables it` * test(success): improve case `Does not comment/label found associatedPR when "successCommentCondition" disables it` * doc: add documentation for `successCommentCondition` and `failCommentCondition` * Update lib/success.js Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com> * refactor: modify `failTitle`, `failComment` and `successComment` false deprecation message * refator: implement early return in `fail` and `success` lifecyccle helper function * Update README.md Co-authored-by: Jonas Schubert <jonas.schubert.projects@web.de> * remove `failCommentCondition` example wrong description * build: fix lint * feat: add validators for `successCommentCondition` and `failCommentCondition` * feat: add `buildAssociatedPRs` to create pr object in form of issue object with pull_request property * doc: update README.md * build: fix lint * build: fix failing test `Add custom comment and labels` * feat: request more field for `associatedPRs` via graphql and improve `buildAssociatedPRs` response object with * test: modify integration tests * test: modify `success` unit tests * build: fix lint * build: fix failing tests * feat: add `__typename` to `issue.user` object * test: add new case `Does not comment/label associatedPR created by "Bots"` * test: modify `pull_request` mock value to `boolean` * chore(test): clean debug comments * feat: re-integrate `buildAssociatedPRs` * feat: re-introduced and modifed `loadSingleCommitAssociatedPRs` * refactor: introduce `parsedIssues` as returned value from `prs**.body` and `commits**.message` * feat: added `buildRelatedIssuesQuery` util graphql query builder * feat: implement computation for `responseRelatedIssues` * fix: correct `number` arg type in `buildRelatedIssuesQuery` * refactor: extract common field accross graphql queries to `baseFields` * refactor: transform `buildAssociatedPRs` to `buildIssuesOrPRsFromResponseNode` with ability to build both `PRs` and `Issues` object * feat: integrate `buildIssuesOrPRsFromResponseNode` * feat: implement `issueOrPR` for correctly addressing issues and pr in logs * feat: implement improved chunk operation helper `inChunks` and integrate in pr and issues fetch * build: fix lints * test: update `integrations` test * test: address PR and Issue naming in logs in `success` * refactor: why the `Promise.all()`? Removed it haha * feat: set default `type` param in `buildIssuesOrPRsFromResponseNode` * feat: address edge cases * test: fixed matchers in graphql request in `success` units * build: lint * docs: add ignore bots pr/issues example * fix: user issue `number` over `id` * test: improve case `'Does not comment/label associatedPR and relatedIssues created by "Bots"'` * doc: modify `buildIssuesOrPRsFromResponseNode` documentation --------- Co-authored-by: Jonas Schubert <jonas.schubert.projects@web.de> Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
feat: verify OAuth scopes of classic GitHub PATs (#897) * fix: verify OAuth scopes of classic GitHub PATs * fix: make EGHNOPERMISSION error message clearer * chore: add comment about x-oauth-scopes header * test: fix failing test * test: add integration test for no maintain permission --------- Co-authored-by: Olabode Lawal-Shittabey <babblebey@gmail.com>
PreviousNext