forked from Gusto/apollo-federation-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add support for @composeDirective #3
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c8f5259
Add support for @composeDirective
utay 2f19d5e
Use schema.join
utay 66d060d
Lint, add links test
utay 15cfca6
Merge pull request #1 from sorare/yu/compose-directive
utay ede329b
Add required to argument
utay 96ec2ca
Drop minor version check
utay d373b7a
Make federation_2_prefix easier to read
utay 0701bff
Lint
utay 3cf158f
Add @policy and use federation_version in link
arutkowski00 8e41028
Improve ignores
arutkowski00 5ab53ba
Add policy directive
arutkowski00 cd90a71
Merge pull request #2 from mondaycom/feature/add-policy
arutkowski00 8911a18
Merge branch 'main' of github.com:sorare/apollo-federation-ruby into …
arutkowski00 27de46e
chore: create Github CI config
arutkowski00 e14052a
Upgrade rubocop, tweak rules & remove problematic package
arutkowski00 60dabf8
Fix tests
arutkowski00 af6265a
Don't run semantic release in PRs
arutkowski00 c278c90
Merge branch 'feature/github-ci' into feature/compose-directive
arutkowski00 e633d4e
Merge remote-tracking branch 'origin/main' into feature/compose-direc…
arutkowski00 1268834
Merge branch 'main' into feature/compose-directive
arutkowski00 0057d54
ci: split workflows
arutkowski00 b8d7d2f
delete semantic release notes (won't work)
arutkowski00 e4f5978
Check all links for imported directive
arutkowski00 4a497b8
Make functions public
arutkowski00 a59c8e0
Invert logic to satisfy RuboCop
arutkowski00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "Semantic PR Title" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
id: lint_pr_title | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
# When the previous steps fails, the workflow would stop. By adding this | ||
# condition you can continue the execution with the populated error message. | ||
if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
with: | ||
header: pr-title-lint-error | ||
message: | | ||
Hey there and thank you for opening this pull request! 👋🏼 | ||
|
||
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. | ||
|
||
Details: | ||
|
||
``` | ||
${{ steps.lint_pr_title.outputs.error_message }} | ||
``` | ||
|
||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.lint_pr_title.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: pr-title-lint-error | ||
delete: true |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.