Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在github中创建拉请求时执行操作_Git_Github_Continuous Integration_Devops_Github Actions - Fatal编程技术网

在github中创建拉请求时执行操作

在github中创建拉请求时执行操作,git,github,continuous-integration,devops,github-actions,Git,Github,Continuous Integration,Devops,Github Actions,我在github中有一个使用JavaGradle构建项目的存储库。创建PR时,我想检查build.gradle文件是否存在依赖项的版本,如果存在,则以某种方式警告用户 我的一个想法是,如果action在build.gradle中发现该版本,将在PR中添加一条注释 我曾想过使用github actions和Reliateot,但我不知道如何实现这一点。如下所示: name: Dependency Check on: pull-request: branches:

我在github中有一个使用JavaGradle构建项目的存储库。创建PR时,我想检查build.gradle文件是否存在依赖项的版本,如果存在,则以某种方式警告用户

我的一个想法是,如果action在build.gradle中发现该版本,将在PR中添加一条注释

我曾想过使用github actions和Reliateot,但我不知道如何实现这一点。如下所示:

name: Dependency Check

on:
  pull-request:
      branches:
             - 'master'
是否可以使用github操作执行类似的操作?或者有没有其他方法来实现这一点? 主要目标是我不希望这个版本的依赖关系被合并