Skip to content

feat: fix semantic-release GitHub plugin configuration#10

Merged
nomeguy merged 2 commits intomasterfrom
copilot/fix-ci-error-another-one
Dec 21, 2025
Merged

feat: fix semantic-release GitHub plugin configuration#10
nomeguy merged 2 commits intomasterfrom
copilot/fix-ci-error-another-one

Conversation

Copy link
Contributor

Copilot AI commented Dec 21, 2025

fix: #9

The CI was failing during semantic-release with Variable $owner of type String! was provided invalid value, preventing automated releases to Maven Central and GitHub.

Changes

  • Added repositoryUrl to .releaserc.json to explicitly provide repository context
  • Configured @semantic-release/github plugin using array format with options object instead of bare string
{
  "branches": ["master"],
  "repositoryUrl": "https://github.com/jcasbin/jcasbin-rabbitmq-watcher",
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@conveyal/maven-semantic-release",
    [
      "@semantic-release/github",
      {
        "assets": []
      }
    ]
  ]
}

The GitHub plugin now receives proper repository metadata, resolving the GraphQL variable error.

Original prompt

This section details on the original issue you should resolve

<issue_title>[bug] fix CI error</issue_title>
<issue_description>fix: https://github.com/jcasbin/jcasbin-rabbitmq-watcher/actions/runs/20406013146/job/58635796781

[Skip to content](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/actions/runs/20406013146/job/58635796781#start-of-content)
Navigation Menu
https://github.com/jcasbin
[jcasbin-rabbitmq-watcher](https://github.com/jcasbin/jcasbin-rabbitmq-watcher)

Type / to search
[Code](https://github.com/jcasbin/jcasbin-rabbitmq-watcher)
[Issues](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/issues)
[Pull requests](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/pulls)
[Actions](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/actions)
[Projects](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/projects)
[Wiki](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/wiki)
[Security](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/security)
[Insights](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/pulse)
[Settings](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/settings)
[build](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/actions/workflows/ci.yml)
feat: fix CI bug by adding configuration file (#8) jcasbin/jcasbin-rabbitmq-watcher#18
Jobs
Run details
Annotations
1 error
[build](https://github.com/jcasbin/jcasbin-rabbitmq-watcher/actions/runs/20406013146/job/58635796781#logs)
failed 17 minutes ago in 1m 18s
Search logs
2s
1s
1s
27s
1s
1s
42s
Progress (1): 123/157 kB
Progress (1): 139/157 kB
Progress (1): 156/157 kB
Progress (1): 157 kB    
                    
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/resolver/maven-resolver-api/1.9.18/maven-resolver-api-1.9.18.jar (157 kB at 4.0 MB/s)
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/pom.xml to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0.pom
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0.jar to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0.jar
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0-sources.jar to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0-sources.jar
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0-javadoc.jar to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0-javadoc.jar
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0.jar.asc to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0.jar.asc
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0.pom.asc to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0.pom.asc
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0-sources.jar.asc to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0-sources.jar.asc
[INFO] Installing /home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/jcasbin-rabbitmq-watcher-1.1.0-javadoc.jar.asc to /home/runner/.m2/repository/org/casbin/jcasbin-rabbitmq-watcher/1.1.0/jcasbin-rabbitmq-watcher-1.1.0-javadoc.jar.asc
[INFO] 
[INFO] --- nexus-staging:1.6.13:deploy (injected-nexus-deploy) @ jcasbin-rabbitmq-watcher ---
[INFO] Performing local staging (local stagingDirectory="/home/runner/work/jcasbin-rabbitmq-watcher/jcasbin-rabbitmq-watcher/target/nexus-staging/staging")...
[INFO]  + Using server credentials "ossrh" from Maven settings.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.291 s
[INFO] Finished at: 2025-12-21T06:41:07Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project jcasbin-rabbitmq-watcher: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: Nexus connection problem to URL [https://oss.sonatype.org/ ]: 401 - Unauthorized -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and po...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes jcasbin/jcasbin-rabbitmq-watcher#9

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hsluoyz
Copy link
Member

hsluoyz commented Dec 21, 2025

@tangyang9464 @imp2002 please review

…github plugin

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI error in jcasbin-rabbitmq-watcher Fix semantic-release GitHub plugin configuration Dec 21, 2025
Copilot AI requested a review from nomeguy December 21, 2025 07:04
@nomeguy nomeguy marked this pull request as ready for review December 21, 2025 07:08
@nomeguy nomeguy changed the title Fix semantic-release GitHub plugin configuration feat: fix semantic-release GitHub plugin configuration Dec 21, 2025
@nomeguy nomeguy merged commit 6b1a1b4 into master Dec 21, 2025
2 of 3 checks passed
@codecov
Copy link

codecov bot commented Dec 21, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] fix CI error

4 participants